/* ===================================
   AUTHENTICATION PAGE STYLES
   =================================== */

.auth-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 2.4rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.remember-me a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-google {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    background: white;
    color: #333;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-google i {
    color: #DB4437;
    margin-right: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border-left: 4px solid var(--error-color);
}

.success-message {
    background: #efe;
    color: var(--success-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border-left: 4px solid var(--success-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 1.5rem 1rem;
    }

    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .auth-header i {
        font-size: 3rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input {
        padding: 0.85rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .btn-full {
        padding: 0.9rem;
    }

    .auth-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 1rem 0.75rem;
    }

    .auth-box {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .auth-header i {
        font-size: 2.5rem;
    }

    .auth-header h2 {
        font-size: 1.3rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input {
        padding: 0.8rem 0.9rem;
    }

    .toggle-password {
        top: 2.2rem;
    }

    .btn-full,
    .btn-google {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .auth-divider span {
        font-size: 0.8rem;
    }

    .error-message,
    .success-message {
        padding: 0.85rem;
        font-size: 0.85rem;
    }
}
/* ===================================
   SMARTPHONE AUTH OPTIMIZATIONS (6.1" - 6.7" screens)
   =================================== */

/* Small Smartphones (max-width: 390px) */
@media (max-width: 390px) {
    .auth-section {
        padding: 0.75rem 0.5rem;
        min-height: 100dvh;
    }
    
    .auth-box {
        padding: 1.25rem 1rem;
        border-radius: 10px;
        max-width: 100%;
    }
    
    .auth-header {
        margin-bottom: 1.25rem;
    }
    
    .auth-header i {
        font-size: 2.25rem;
    }
    
    .auth-header h2 {
        font-size: 1.2rem;
    }
    
    .auth-header p {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }
    
    .form-group input {
        padding: 0.75rem 0.85rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 0.85rem;
    }
    
    .input-icon + input {
        padding-left: 2.25rem;
    }
    
    .toggle-password {
        right: 0.75rem;
        font-size: 0.85rem;
    }
    
    .form-options {
        gap: 0.6rem;
        font-size: 0.8rem;
    }
    
    .form-options label {
        font-size: 0.8rem;
    }
    
    .btn-full {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .btn-google {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
    
    .btn-google img {
        width: 18px;
        height: 18px;
    }
    
    .auth-divider {
        margin: 1rem 0;
    }
    
    .auth-divider span {
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .auth-footer {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        font-size: 0.85rem;
    }
    
    .auth-footer a {
        font-size: 0.85rem;
    }
    
    .error-message,
    .success-message {
        padding: 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    /* OTP Input */
    .otp-inputs {
        gap: 0.4rem;
    }
    
    .otp-inputs input {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .resend-timer {
        font-size: 0.8rem;
    }
}

/* Extra Small Smartphones (max-width: 350px) */
@media (max-width: 350px) {
    .auth-section {
        padding: 0.5rem 0.35rem;
    }
    
    .auth-box {
        padding: 1rem 0.85rem;
    }
    
    .auth-header i {
        font-size: 2rem;
    }
    
    .auth-header h2 {
        font-size: 1.1rem;
    }
    
    .form-group input {
        padding: 0.65rem 0.75rem;
    }
    
    .btn-full {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
    
    .otp-inputs input {
        width: 36px;
        height: 44px;
        font-size: 1.1rem;
    }
}