/* ============================================================
   login.css — Exclusive stylesheet for login.php
   Topperscloud Classroom | Color theme: Indigo #0095FF
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
}

/* Background decorative blobs */
.login-page::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: #0095FF;
    border-radius: 50%;
    opacity: 0.18;
    pointer-events: none;
}
.login-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.55;
    pointer-events: none;
}

/* ── Card ────────────────────────────────────────────────── */
.login-card {
    display: flex;
    width: 100%;
    max-width: 920px;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(99, 102, 241, 0.18), 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

/* ── Left — Form panel ───────────────────────────────────── */
.login-form-panel {
    flex: 1;
    background: #fff;
    padding: 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-panel .login-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #0d1635;
    margin-bottom: 0.25rem;
}

.login-form-panel .login-subheading {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1.75rem;
}

/* Input groups */
.login-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.login-input-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.login-input-group .form-control {
    padding-left: 2.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input-group .form-control:focus {
    border-color: #0095FF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

.login-input-group .form-control::placeholder {
    color: #b0bec5;
}

/* Login button */
.btn-login {
    background: linear-gradient(135deg, #0095FF 0%, #33aaff 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.btn-login:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Social login buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #3d4556;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-decoration: none;
    margin-bottom: 0.6rem;
}

.btn-social:hover {
    border-color: #0095FF;
    background: #f5f3ff;
    color: #3d4556;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.btn-social .social-icon {
    font-size: 1.1rem;
}

/* Register link */
.login-register-link {
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 1rem;
}

.login-register-link a {
    color: #0095FF;
    font-weight: 700;
    text-decoration: none;
}

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

/* Error alert */
.login-alert {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Forgot password */
.forgot-link {
    font-size: 0.82rem;
    color: #0095FF;
    text-decoration: none;
    font-weight: 600;
    float: right;
}
.forgot-link:hover { text-decoration: underline; }

/* ── Right — Decorative panel ────────────────────────────── */
.login-deco-panel {
    flex: 0 0 42%;
    background: linear-gradient(145deg, #0077CC 0%, #0095FF 45%, #33aaff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2.5rem;
}

/* Decorative wave / ripple shapes */
.deco-wave {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.deco-wave-1 {
    width: 320px;
    height: 320px;
    border: 2px solid rgba(255,255,255,0.1);
    top: -80px;
    right: -80px;
}
.deco-wave-2 {
    width: 240px;
    height: 240px;
    border: 2px solid rgba(255,255,255,0.08);
    bottom: -40px;
    left: -60px;
}
.deco-wave-3 {
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.06);
    top: 30px;
    left: 20px;
}

/* Centre illustration box */
.deco-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
}

.deco-card-img {
    width: 200px;
    height: 240px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
}

.deco-card-img .deco-main-icon {
    font-size: 5rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.deco-card-img .deco-sub-text {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Lightning badge */
.deco-badge {
    position: absolute;
    bottom: -14px;
    left: -14px;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-size: 1.4rem;
}

.deco-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.deco-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .login-deco-panel {
        display: none;
    }
    .login-card {
        max-width: 460px;
        border-radius: 20px;
    }
    .login-form-panel {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 420px) {
    .login-form-panel {
        padding: 2rem 1.5rem;
    }
    .login-heading {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════════════════════════════════
   Multi-step flow additions
   ══════════════════════════════════════════════════════════ */

/* Brand mark at top of form panel */
.login-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
.login-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.login-brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0d1635;
    line-height: 1.2;
}
.login-brand-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0095FF;
    letter-spacing: .08em;
}

/* Progress dots */
.step-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
}
.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dde4ef;
    transition: background 0.3s, transform 0.3s;
}
.step-dot.active {
    background: #0095FF;
    transform: scale(1.25);
}

/* Step panels — only one visible at a time */
.form-step {
    display: none;
    flex-direction: column;
    animation: none;
}
.form-step.active {
    display: flex;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0);    }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0);     }
}
.form-step.slide-in-right { animation: slideInRight 0.25s ease forwards; }
.form-step.slide-in-left  { animation: slideInLeft  0.25s ease forwards; }

/* Identifier badge (shows chosen email/mobile in step 2) */
.identifier-badge {
    display: flex;
    align-items: center;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0d1635;
    gap: 0;
}
.identifier-badge .ms-auto {
    white-space: nowrap;
}

/* Back button — minimal ghost style */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s;
}
.back-btn:hover { color: #0095FF; }

/* Inline error below form groups */
.login-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

