/* assets/css/auth.css - Improved mobile responsive styles for login/register pages */

/* Dark theme using landing page styles */
.auth-container {
    min-height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 194, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 202, 77, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(77, 202, 166, 0.1) 0%, transparent 50%);
}

.auth-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
    position: relative;
    z-index: 1;
}

/* Special styling for registration page - wider form side */
.registration-page .auth-card {
    grid-template-columns: 1fr 2.2fr;
    max-width: 1500px;
    min-height: 750px;
}

/* ============================================
   VERIFICATION CODE INPUT IMPROVEMENTS
   ============================================ */

.verification-code-input {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.code-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    user-select: text; /* Allow text selection for better UX */
    cursor: text;
}

.code-digit:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.code-digit:hover {
    border-color: var(--primary-color);
}

/* Highlight filled digits */
.code-digit:not(:placeholder-shown):valid {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.05);
}

/* ============================================
   COMPLETION/WELCOME SCREEN FIXES
   ============================================ */

/* Override the grid layout for completion card to center it properly */
.auth-card.completion-card {
    grid-template-columns: 1fr; /* Single column instead of split layout */
    max-width: 600px; /* Reasonable max width */
    min-height: auto; /* Don't force minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure completion section takes full width and is centered */
.completion-section {
    text-align: center;
    padding: var(--spacing-2xl);
    width: 100%;
    max-width: none; /* Remove any width constraints */
}

.completion-header {
    margin-bottom: var(--spacing-xl);
}

.completion-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.completion-header h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 28px;
    font-weight: bold;
}

.completion-header p {
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.completion-content {
    margin-bottom: var(--spacing-xl);
}

.completion-content ul {
    text-align: left;
    margin: 0 auto var(--spacing-xl);
    list-style: none;
    max-width: 400px;
    padding: 0;
}

.completion-content li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    padding-left: var(--spacing-lg);
    position: relative;
    line-height: 1.5;
}

.completion-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 14px;
}

/* Action buttons in completion screen */
.completion-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 300px;
    margin: 0 auto;
}

.completion-actions .auth-btn {
    margin-bottom: 0; /* Reset default button margin */
}

/* ============================================
   VERIFICATION STEP IMPROVEMENTS
   ============================================ */

/* Ensure verification card also centers properly */
.auth-card.verification-card {
    grid-template-columns: 1fr; /* Single column layout */
    max-width: 500px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.verification-section {
    padding: var(--spacing-2xl);
    text-align: center;
}


.verification-header {
    margin-bottom: var(--spacing-xl);
}

.verification-header h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 24px;
}

.verification-header p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 0;
}

.verification-form {
    margin-bottom: var(--spacing-lg);
}

.resend-code {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.resend-code p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.resend-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.resend-link:hover {
    text-decoration: underline;
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Stack verification code inputs on very small screens if needed */
    .verification-code-input {
        gap: 8px;
    }
    
    .code-digit {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Ensure completion card works well on mobile */
    .completion-section {
        padding: var(--spacing-lg);
    }
    
    .completion-icon {
        font-size: 48px;
    }
    
    .completion-header h2 {
        font-size: 24px;
    }
    
    .verification-section {
        padding: var(--spacing-lg);
    }
    
    .verification-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .verification-code-input {
        gap: 6px;
        justify-content: center;
    }
    
    .code-digit {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .completion-content ul {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
}

/* ============================================
   LOADING AND ERROR STATES
   ============================================ */

.verification-form .auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.verification-form .auth-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Error state for verification inputs */
.code-digit.error {
    border-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success state for verification inputs */
.code-digit.success {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.05);
}

/* Keep login page at original proportions */
.auth-page:not(.registration-page) .auth-card {
    grid-template-columns: 1fr 2.2fr;
    max-width: 1000px;
}

.auth-hero {
    background: #000;
    color: var(--text-white);
    padding: var(--spacing-2xl) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(0, 194, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(168, 202, 77, 0.15) 0%, transparent 50%);
}

.auth-logo {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: var(--spacing-lg);
    z-index: 1;
}

.auth-hero-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    z-index: 1;
}

.auth-hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    z-index: 1;
}

.auth-feature-list {
    list-style: none;
    z-index: 1;
}

.auth-feature-list li {
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.auth-feature-list li::before {
    content: '✓';
    background: rgba(0, 194, 255, 0.8);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
    font-size: 10px;
    font-weight: bold;
}

.auth-form-section {
    padding: var(--spacing-2xl);
    background: var(--bg-primary);
}

.auth-form-section-login {
    padding: var(--spacing-2xl);
    background: var(--bg-primary);
}

.auth-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: 4px;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-slow);
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-secondary);
}

.auth-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-slow);
    margin-bottom: var(--spacing-lg);
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}

.login-logo-section {
    margin-inline: auto;
}

.login-logo-section .game {
    color: white;
    font-size: 32px;
    padding-left: 4px;
    font-weight: bold;
}

.login-logo-section .face {
    color: #00c2ff;
    font-size: 32px;
    padding-right: 4px;
    font-weight: bold;
}

.emoji-icon-xl {
    width: 48px;
    height: 48px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
}

.auth-divider span {
    background: var(--bg-primary);
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

.auth-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Password Field Styles */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-requirements {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-sm);
    font-size: 12px;
}

.password-requirement, .requirement {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.password-requirement:last-child, .requirement:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    font-weight: bold;
    font-size: 10px;
}

.requirement.valid {
    color: var(--success-color);
}

.requirement.valid .requirement-icon {
    color: var(--success-color);
}

.requirement.invalid {
    color: var(--error-color);
}

.requirement.invalid .requirement-icon {
    color: var(--error-color);
}

/* Role Selection Styles */
.role-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.role-option {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
}

.role-optionx {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    xcursor: pointer;
    text-align: center;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
}

.role-option:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.role-option.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.role-option h4 {
    margin: var(--spacing-sm) 0;
    color: var(--text-primary);
}

.role-option p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkbox-input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

/* Alert styles */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

/* Verification Code Input */
.verification-code-input {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.code-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-normal);
}

.code-digit:focus {
    border-color: var(--primary-color);
    outline: none;
}

.resend-code {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: var(--spacing-md);
}

.resend-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

/* Completion Step */
.completion-card {
    max-width: 500px;
    margin: 0 auto;
}

.completion-section {
    text-align: center;
}

.completion-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
}

.completion-header h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.completion-header p {
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.completion-content ul {
    text-align: left;
    margin-bottom: var(--spacing-xl);
    list-style-position: inside;
}

.completion-content li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Loading state for auth form */
.auth-form.loading {
    pointer-events: none;
}

.auth-form.loading .auth-btn {
    position: relative;
    color: transparent;
}

.auth-form.loading .auth-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--text-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

/* Phone Confirmation Popup Styles - Add to auth.css or in register.php <style> section */

.phone-confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.phone-confirmation-popup.show {
    display: flex;
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-content h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.popup-content p {
    margin: 0 0 1.5rem 0;
    color: #64748b;
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-confirm,
.btn-cancel {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-confirm {
    background: #3498db;
    color: white;
}

.btn-confirm:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #95a5a6;
    color: white;
}

.btn-cancel:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .popup-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .btn-confirm,
    .btn-cancel {
        width: 100%;
    }
}

/* Overlay click to close functionality */
.phone-confirmation-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Registration form specific styles */
.registration-form {
    width: 100%;
}

.form-section {
    margin-bottom: var(--spacing-xl);
}

.form-section h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-slow);
    margin-bottom: var(--spacing-lg);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* =====================================================
   IMPROVED MOBILE RESPONSIVE STYLES
   ===================================================== */

/* Large tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .auth-container {
        padding: var(--spacing-md);
    }
    
    .auth-card {
        grid-template-columns: 1fr 1.8fr;
        min-height: 650px;
    }
    
    .registration-page .auth-card {
        grid-template-columns: 1fr 2fr;
        min-height: 700px;
    }
    
    .auth-hero {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .auth-form-section,
    .auth-form-section-login {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

/* Standard tablets (768px and below) */
@media (max-width: 768px) {
    .auth-container {
        padding: var(--spacing-sm);
        align-items: stretch;
    }
    
    .auth-card {
        grid-template-columns: 1fr;
        margin: 0;
        max-width: none;
        min-height: auto;
        max-height: none;
        width: 100%;
        display: block;
    }
    
    .registration-page .auth-card {
        grid-template-columns: 1fr;
        max-width: none;
        min-height: auto;
    }
    
    .auth-page:not(.registration-page) .auth-card {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .auth-hero {
        padding: var(--spacing-xl) var(--spacing-lg);
        text-align: center;
        min-height: auto;
        order: 1;
    }
    
    .auth-hero-title {
        font-size: 24px;
    }
    
    .auth-hero-subtitle {
        font-size: 14px;
    }
    
    .auth-feature-list {
        display: none; /* Hide feature list on mobile to save space */
    }
    
    .auth-form-section,
    .auth-form-section-login {
        padding: var(--spacing-xl) var(--spacing-lg);
        order: 2;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .role-options {
        grid-template-columns: 1fr;
    }
    
    .verification-code-input {
        gap: var(--spacing-xs);
        justify-content: space-between;
    }
    
    .code-digit {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex: 1;
        max-width: 50px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .auth-container {
        padding: 8px;
        min-height: 100vh;
        align-items: flex-start;
    }
    
    .auth-card {
        border-radius: var(--radius-lg);
        min-height: calc(100vh - 16px);
        display: flex;
        flex-direction: column;
    }
    
    .auth-hero {
        padding: var(--spacing-lg) var(--spacing-md);
        flex-shrink: 0;
        min-height: auto;
    }
    
    .auth-logo {
        font-size: 28px;
        margin-bottom: var(--spacing-md);
    }
    
    .auth-hero-title {
        font-size: 20px;
        margin-bottom: var(--spacing-sm);
    }
    
    .auth-hero-subtitle {
        font-size: 13px;
        margin-bottom: var(--spacing-md);
    }
    
    .auth-form-section,
    .auth-form-section-login {
        padding: var(--spacing-lg) var(--spacing-md);
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .auth-form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .auth-btn {
        padding: 16px;
        font-size: 16px;
        margin-top: auto;
        margin-bottom: var(--spacing-md);
    }
    
    .verification-code-input {
        gap: 6px;
    }
    
    .code-digit {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .login-logo-section .game,
    .login-logo-section .face {
        font-size: 24px;
    }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
    .auth-container {
        padding: 4px;
    }
    
    .auth-card {
        border-radius: var(--radius-md);
        min-height: calc(100vh - 8px);
    }
    
    .auth-hero {
        padding: var(--spacing-md);
    }
    
    .auth-form-section,
    .auth-form-section-login {
        padding: var(--spacing-md);
    }
    
    .form-input {
        padding: 12px 14px;
    }
    
    .code-digit {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .verification-code-input {
        gap: 4px;
    }
}

/* Landscape mode adjustments for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-container {
        align-items: center;
        padding: var(--spacing-sm);
    }
    
    .auth-card {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .auth-hero {
        padding: var(--spacing-md) var(--spacing-sm);
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .auth-hero-title {
        font-size: 18px;
        margin-bottom: var(--spacing-xs);
    }
    
    .auth-hero-subtitle {
        font-size: 12px;
        margin-bottom: var(--spacing-sm);
    }
    
    .auth-feature-list {
        display: none;
    }
    
    .auth-form-section,
    .auth-form-section-login {
        padding: var(--spacing-md) var(--spacing-sm);
        overflow-y: auto;
    }
    
    .form-group {
        margin-bottom: var(--spacing-sm);
    }
}