/**
 * Mobile responsive styles
 * Consistent mobile experience across all pages
 */

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Remove card styling on mobile - full screen */
    .login-card,
    .card,
    .content-card {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 0 24px !important;
    }
    
    /* Full height container */
    .container,
    .login-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        background: #0d0d0d;
    }
    
    /* Logo positioning */
    .logo,
    .brand-logo {
        width: 75px !important;
        height: 75px !important;
        margin-bottom: 16px !important;
    }
    
    /* Title */
    .title,
    h1 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }
    
    /* Subtitle / description */
    .page-subtitle,
    .description,
    .subtitle {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    
    /* Email chip */
    .email-chip,
    .user-email-chip {
        margin-bottom: 32px !important;
    }
    
    /* Tap number - large and centered */
    .tap-number-large {
        font-size: 72px !important;
        margin: 32px 0 24px 0 !important;
    }
    
    /* Section title (Open the Gmail app...) */
    .tap-section-title {
        font-size: 20px !important;
        margin-bottom: 16px !important;
        text-align: left !important;
    }
    
    /* Instruction text */
    .tap-instruction-text,
    .instruction-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
    
    /* Input fields */
    .input-field,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Buttons */
    .btn,
    .btn-primary,
    .next-btn,
    button[type="submit"] {
        width: auto !important;
        min-width: 88px !important;
        padding: 10px 24px !important;
        font-size: 14px !important;
    }
    
    /* Links section */
    .resend-link,
    .try-another-link {
        margin-top: 32px !important;
        text-align: left !important;
    }
    
    .resend-link a,
    .try-another-link a {
        font-size: 14px !important;
    }
    
    /* Footer */
    .footer {
        margin-top: auto !important;
        padding: 16px 24px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .footer-links {
        display: flex !important;
        gap: 24px !important;
    }
    
    .footer-link {
        font-size: 12px !important;
    }
    
    .language-select {
        font-size: 12px !important;
    }
    
    /* Hide unnecessary elements on mobile */
    .tap-left-section {
        display: none !important;
    }
    
    .tap-right-content {
        text-align: left !important;
        padding: 0 !important;
    }
    
    /* Tap content area */
    .tap-content-area {
        display: block !important;
        text-align: left !important;
    }
    
    /* Action row (buttons) */
    .action-row,
    .button-row {
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        margin-top: 24px !important;
    }
    
    /* Form group spacing */
    .form-group,
    .input-group {
        margin-bottom: 24px !important;
    }
    
    /* Code input for SMS/TOTP */
    .code-input-wrapper,
    .sms-input-wrapper {
        max-width: 100% !important;
    }
    
    /* Phone number display */
    .sms-phone,
    .phone-number {
        font-size: 14px !important;
    }
    
    /* Choose page - method list */
    .method-list {
        width: 100% !important;
    }
    
    .method-item {
        padding: 16px !important;
    }
    
    .method-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .method-title {
        font-size: 14px !important;
    }
    
    .method-subtitle {
        font-size: 12px !important;
    }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
    .login-card,
    .card,
    .content-card {
        padding: 0 16px !important;
    }
    
    .title,
    h1 {
        font-size: 22px !important;
    }
    
    .tap-number-large {
        font-size: 64px !important;
    }
    
    .tap-section-title {
        font-size: 18px !important;
    }
    
    .footer {
        padding: 12px 16px !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .container,
    .login-container {
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .tap-number-large {
        font-size: 48px !important;
        margin: 16px 0 !important;
    }
}
