/* Mobile-specific styles for login page */

/* General Mobile Optimizations */
@media (max-width: 1024px) {
    /* Improve touch targets for better mobile interaction */
    button, 
    input[type="submit"],
    input[type="checkbox"] + label,
    .btn-large {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0); /* Remove tap highlight on iOS */
    }
    
    /* Optimize scrolling */
    html, body {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

/* Tablet Styles (960px and below) */
@media (max-width: 960px) {
    .login-container {
        padding: 60px 0; /* Reduced padding */
    }
    
    .login-wrapper {
        max-width: 90%;
        padding: 35px 30px;
    }
    
    .login-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }
}

/* Medium Mobile Styles (768px and below) */
@media (max-width: 768px) {
    /* Navbar height reduction */
    .site-header {
        padding: 0.4rem 0; /* Slightly increased padding */
        margin-bottom: -10px; /* Reduced negative margin */
    }
    
    .site-header .container {
        padding: 0 15px;
    }
    
    /* Bring up main container, but not as much as before */
    .login-container {
        padding: 0; /* Removed padding completely */
        margin-top: -15px; /* Reduced negative margin */
    }
    
    .login-wrapper {
        padding: 25px 20px;
        max-width: 95%;
        margin-top: 0; /* Reset margin-top */
        border-radius: 8px 8px 0 0; /* Rounded corners only at top */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1); /* Shadow only at the top */
    }
    
    .login-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    /* Form element adjustments */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 10px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Button adjustments */
    .form-actions {
        margin-top: 20px;
    }
    
    .btn-large {
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Form options adjustments */
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
    
    /* Promo section adjustments */
    .login-promo {
        margin-top: 20px;
        padding: 12px;
    }
    
    .promo-icon {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    .promo-text p {
        font-size: 0.85rem;
    }
}

/* Small Mobile Styles (600px and below) */
@media (max-width: 600px) {
    /* Further reduce space for small screens, but not as much as before */
    .site-header {
        margin-bottom: -12px; /* Reduced negative margin */
    }
    
    .login-container {
        margin-top: -18px; /* Reduced negative margin */
    }
    
    .login-wrapper {
        padding: 20px 15px;
        margin-top: 0; /* Reset margin-top */
    }
    
    .login-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .register-link {
        margin-top: 20px;
        font-size: 0.9rem;
        padding-top: 15px;
    }
}

/* Extra Small Mobile Styles (400px and below) */
@media (max-width: 400px) {
    /* Maximum reduction for very small screens, but not as much as before */
    .site-header {
        margin-bottom: -15px; /* Reduced negative margin */
    }
    
    .login-container {
        margin-top: -20px; /* Reduced negative margin */
    }
    
    .login-wrapper {
        padding: 15px 10px;
        margin-top: 0; /* Reset margin-top */
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-options {
        font-size: 0.8rem;
    }
} 