﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-primary: #16a34a;
    --green-light: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.35);
    --lime: #84cc16;
    --blue: #0ea5e9;
    --dark: #0a0f1e;
    --dark-card: rgba(10, 15, 30, 0.72);
    --white: #ffffff;
    --off-white: #f0fdf4;
    --muted: rgba(255,255,255,0.55);
    --border-glass: rgba(255,255,255,0.18);
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
}

body {
    background: var(--dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ==============================
   LAYOUT
   ============================== */
.page-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ==============================
   LEFT PANEL â€“ HERO IMAGE
   ============================== */
.hero-panel {
    flex: 0 0 58%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-panel__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/admission.webp');
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.04);
    transition: transform 8s ease;
    will-change: transform;
}

.hero-panel__bg.loaded {
    transform: scale(1);
}

/* Multi-layer gradient overlay for depth */
.hero-panel__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(10, 15, 30, 0.10) 0%,
            rgba(10, 15, 30, 0.55) 100%
        ),
        linear-gradient(
            to top,
            rgba(10, 15, 30, 0.92) 0%,
            rgba(10, 15, 30, 0.30) 55%,
            transparent 100%
        );
}

/* Animated green accent streak */
.hero-panel__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--green-light) 30%,
        var(--lime) 70%,
        transparent 100%
    );
    opacity: 0.8;
}

.hero-panel__content {
    position: relative;
    z-index: 2;
    padding: 3rem 3.5rem;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: absolute;
    top: 2.5rem;
    left: 3rem;
}

.hero-logo img {
    height: 3.5rem;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.hero-tagline {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin-bottom: 1.25rem;
}

.hero-tagline span {
    background: linear-gradient(90deg, var(--green-light), var(--lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    font-weight: 400;
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero-stat__label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stat__divider {
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.2);
    align-self: stretch;
}

/* ==============================
   RIGHT PANEL â€“ LOGIN FORM
   ============================== */
.form-panel {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0d1117;
    position: relative;
    overflow: hidden auto;
    padding: 2rem 0;
}

/* Subtle background radial glow */
.form-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.form-panel::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.form-inner {
    width: 100%;
    max-width: 420px;
    padding: 0 2.5rem;
    position: relative;
    z-index: 1;
}

/* Language toggle */
.language-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 2.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255,255,255,0.5);
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--green-light);
    color: var(--green-light);
}

.lang-btn.active {
    background: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
}

/* Form header */
.form-header {
    margin-bottom: 2.25rem;
}

.form-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green-light);
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.form-header__eyebrow i {
    font-size: 10px;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.form-header p {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Error alert */
.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 13px;
}

.error-alert ul {
    list-style: none;
    padding: 0;
}

.error-alert li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-alert li::before {
    content: 'â—';
    font-size: 8px;
    color: #ef4444;
}

/* Login form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Input groups */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.68);
    pointer-events: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    z-index: 1;
}

.input-field {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.input-field::placeholder {
    color: rgba(255,255,255,0.3);
}

.input-field:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(255,255,255,0.92);
    caret-color: rgba(255,255,255,0.92);
    -webkit-box-shadow: 0 0 0 1000px #1c2535 inset;
    box-shadow: 0 0 0 1000px #1c2535 inset;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background-color 9999s ease-out 0s;
}

.input-group:focus-within .input-icon {
    color: var(--green-light);
}

.toggle-password {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.62);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    transition: color var(--transition);
}

.toggle-password:hover {
    color: var(--green-light);
}

/* Login Options */
.login-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.option-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.option-box:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
    gap: 0.6rem;
}

.option-checkbox {
    cursor: pointer;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--green-light);
    flex-shrink: 0;
}

.option-label {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.option-description {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.option-description i {
    color: var(--green-primary);
    margin-top: 0.1rem;
    font-size: 10px;
}

/* Turnstile */
.turnstile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.turnstile-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* Login Button */
.login-button {
    width: 100%;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);
    color: white;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.25rem;
    font-family: inherit;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.35);
    position: relative;
    overflow: hidden;
    margin-top: 0.25rem;
}

.login-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.login-button:hover::after {
    transform: translateX(100%);
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 32px rgba(34, 197, 94, 0.5);
}

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

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    display: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.login-button.btn-loading .loading-spinner {
    display: inline-block;
}

.login-button.btn-loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.login-footer {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-footer i {
    color: var(--green-primary);
}

/* Support section at bottom of form */
.form-support {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

.form-support p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.5rem;
}

.form-support a {
    color: var(--green-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color var(--transition);
}

.form-support a:hover {
    color: var(--lime);
}

/* ==============================
   FLOATING BUTTONS
   ============================== */
.help-button {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 50;
}

.help-button:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.whatsapp-button {
    position: fixed;
    bottom: 5.25rem;
    right: 1.75rem;
    width: 3rem;
    height: 3rem;
    background: #25d366;
    border-radius: 50%;
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 50;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ==============================
   TUTORIAL
   ============================== */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.tutorial-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tutorial-spotlight {
    position: fixed;
    border: 2px solid var(--green-light);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    pointer-events: none;
    display: none;
}

.tutorial-tooltip {
    position: fixed;
    background: #0f1729;
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 340px;
    z-index: 1002;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.tutorial-tooltip h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--green-light);
}

.tutorial-tooltip p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.65);
}

.tutorial-tooltip ul {
    list-style: none;
    margin-bottom: 1rem;
}

.tutorial-tooltip li {
    margin-bottom: 0.4rem;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tutorial-tooltip li::before {
    content: "âœ“";
    color: var(--green-light);
    font-weight: bold;
    flex-shrink: 0;
}

.tutorial-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    align-items: center;
}

.tutorial-btn {
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tutorial-btn.prev {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
}

.tutorial-btn.prev:hover {
    background: rgba(255,255,255,0.12);
}

.tutorial-btn.next {
    background: var(--green-primary);
    color: white;
}

.tutorial-btn.next:hover {
    background: var(--green-light);
}

.tutorial-btn.skip {
    background: transparent;
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.1);
}

.tutorial-btn.skip:hover {
    color: rgba(255,255,255,0.7);
}

.tutorial-progress {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.25s ease;
}

.progress-dot.active {
    background: var(--green-light);
    width: 22px;
    border-radius: 3px;
}

.tutorial-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: var(--green-light);
    font-size: 11px;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}

.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.tutorial-arrow-up {
    border-width: 8px 8px 0 8px;
    border-color: #0f1729 transparent transparent transparent;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.tutorial-arrow-down {
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #0f1729 transparent;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==============================
    MOBILE LOGO (hidden on desktop)
    ============================== */
.mobile-logo {
     display: none;
}

/* ==============================
    RESPONSIVE
    ============================== */

/* Tablet landscape */
@media (max-width: 1100px) {
    .hero-panel {
        flex: 0 0 52%;
    }
    .form-panel {
        flex: 0 0 48%;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .hero-panel {
        flex: 0 0 48%;
    }
    .form-panel {
        flex: 0 0 52%;
    }
    .hero-tagline {
        font-size: 1.75rem;
    }
    .hero-panel__content {
        padding: 2rem 2rem;
    }
    .form-inner {
        padding: 0 2rem;
    }
}

/* Mobile – hide hero panel entirely, full-screen form */
@media (max-width: 680px) {
    .page-wrapper {
        flex-direction: column;
        overflow: auto;
        background: #0d1117;
    }

    /* Hide the hero image panel completely on mobile */
    .hero-panel {
        display: none;
    }

    /* Form panel takes full screen */
    .form-panel {
        flex: 1 1 100%;
        width: 100%;
        min-height: 100vh;
        padding: 0;
        overflow: auto;
        justify-content: flex-start;
    }

    .form-inner {
        padding: 2rem 1.5rem 3rem;
        max-width: 100%;
    }

    /* Show logo on mobile */
    .mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1.75rem;
        padding-top: 0.5rem;
    }

    .mobile-logo img {
        height: 3rem;
        width: auto;
        filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
    }

    /* Language toggle – smaller on mobile */
    .language-toggle {
        margin-bottom: 1.75rem;
        justify-content: center;
    }

    .lang-btn {
        padding: 0.4rem 1rem;
        font-size: 12px;
    }

    /* Form header adjustments */
    .form-header {
        text-align: center;
        margin-bottom: 1.75rem;
    }

    .form-header__eyebrow {
        margin-bottom: 0.75rem;
    }

    .form-header h1 {
        font-size: 1.75rem;
    }

    /* Inputs full-width comfortable touch targets */
    .input-field {
        padding: 1rem 1rem 1rem 2.75rem;
        font-size: 1rem;
    }

    /* Options stack vertically */
    .login-options {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    /* Login button bigger tap target */
    .login-button {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
        min-height: 3.5rem;
    }

    /* Support text centered */
    .form-support {
        text-align: center;
    }

    /* Tutorial tooltip full width */
    .tutorial-tooltip {
        max-width: calc(100vw - 2rem) !important;
        left: 1rem !important;
        right: 1rem !important;
    }

    /* Floating buttons smaller on mobile */
    .help-button,
    .whatsapp-button {
        width: 2.75rem;
        height: 2.75rem;
        right: 1rem;
    }

    .help-button {
        bottom: 1rem;
    }

    .whatsapp-button {
        bottom: 4.25rem;
    }
}

/* Legacy selectors â€“ kept for JS compatibility */
.container { display: none; }
.grid { display: none; }
.info-section { display: none; }
.login-container { display: none; }
.login-header { display: none; }

