/* ============================================================
   EduFlow AI CRM — Premium Glassmorphic Login Theme
   Vibrant mesh gradients, micro-animations, glowing fields
   ============================================================ */

:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #10b981;
    --dark: #0b0f19;
    --dark-card: rgba(17, 24, 39, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-muted: #94a3b8;
}

body.auth-clean-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
                var(--dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #f8fafc;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Frosted Glass Card */
.auth-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
                0 0 1px 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Brand/Logo Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    border-radius: 16px;
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    margin-bottom: 16px;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: rotate(0deg) scale(1.05);
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Inputs & Form Fields */
.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-control-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control-custom:focus + .input-icon {
    color: var(--primary);
}

/* Eye Toggle */
.eye-toggle-custom {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.eye-toggle-custom:hover {
    color: #ffffff;
}

/* Options/Forgot Password Link */
.forgot-link-custom {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.forgot-link-custom:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    border-radius: 12px;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* Alert Notification */
.auth-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    animation: shake 0.4s ease-in-out;
}

/* Custom Bottom Navigation link */
.auth-footer-nav {
    text-align: center;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-home-link:hover {
    color: #ffffff;
}

/* Floating Navigation helper (Cleaned up) */
.auth-back-home-floating {
    display: none !important;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}