* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ep-font: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
    --ep-heading: "Outfit", "Poppins", "Segoe UI", sans-serif;
}

body {
    font-family: var(--ep-font);
    background: #f8fbff;
    color: #0f172a;
}

h1, h2, h3,
.auth-left h1,
.login-heading h2,
.brand strong {
    font-family: var(--ep-heading);
}

a {
    text-decoration: none;
}

svg {
    display: block;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-left {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 36px 8% 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(520px 280px at 100% 0%, rgba(37, 99, 235, 0.38), transparent 58%),
        radial-gradient(420px 240px at 0% 100%, rgba(16, 185, 129, 0.16), transparent 52%),
        #07111f;
}

.auth-left::before,
.auth-left::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-left::before {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -120px;
}

.auth-left::after {
    width: 460px;
    height: 460px;
    left: -220px;
    bottom: -240px;
}

.brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    color: #fff;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    color: #1d4ed8;
    font-family: var(--ep-heading);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: #93c5fd;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.left-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: auto 0;
    padding: 28px 0;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.left-content h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 4.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.left-content h1 span,
.left-content h1 strong {
    color: #93c5fd;
    font-weight: 700;
}

.left-content > p {
    max-width: 460px;
    margin: 0 0 22px;
    color: #c7d2fe;
    font-size: 0.98rem;
    line-height: 1.7;
}

.auth-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    list-style: none;
}

.auth-proof li {
    padding: 12px 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-proof b {
    display: block;
    font-family: var(--ep-heading);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.auth-proof span {
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 600;
}

.learning-box {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.learning-icon,
.check {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.28);
    color: #dbeafe;
    font-size: 1.05rem;
}

.learning-icon svg,
.check svg {
    width: 18px;
    height: 18px;
}

.check {
    width: 28px;
    height: 28px;
    margin-left: auto;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.learning-box strong {
    display: block;
    font-size: 0.92rem;
}

.learning-box > div span {
    display: block;
    margin-top: 2px;
    color: #bfdbfe;
    font-size: 0.75rem;
}

.left-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    color: #93c5fd;
    font-size: 0.75rem;
}

.left-footer a {
    color: #fff;
    font-weight: 700;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 28px;
    background:
        radial-gradient(560px 220px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
        #f8fbff;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    padding: 32px 32px 28px;
    border: 1px solid #e8eef6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #93c5fd);
}

.auth-card-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.auth-card-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-card-nav a:last-child {
    background: #eff6ff;
    color: #1d4ed8;
}

.auth-card-nav svg {
    width: 14px;
    height: 14px;
}

.mobile-logo {
    display: none;
}

.login-heading {
    margin-bottom: 22px;
}

.login-heading > span {
    display: block;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 8px 0 6px;
    color: #0f172a;
    font-size: 1.85rem;
    letter-spacing: -0.04em;
}

.login-heading p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.label-row a,
.forgot-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-box {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-box:focus-within {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-box > span {
    display: grid;
    place-items: center;
    width: 28px;
    color: #94a3b8;
}

.input-box > span svg {
    width: 18px;
    height: 18px;
}

.input-box input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.92rem;
}

.input-box input::placeholder {
    color: #94a3b8;
}

.show-password {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.show-password svg {
    width: 18px;
    height: 18px;
}

.show-password.is-on,
.show-password:hover {
    color: #2563eb;
    background: #eff6ff;
}

.remember-row {
    margin: 0 0 18px;
}

.remember-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
}

.remember-row input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-family: var(--ep-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.login-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.login-button svg,
.login-button span {
    width: 18px;
    height: 18px;
    font-size: 1.1rem;
}

.divider {
    position: relative;
    margin: 22px 0 16px;
    text-align: center;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #eef2f7;
}

.divider span {
    position: relative;
    padding: 0 12px;
    background: #fff;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.auth-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-bottom: 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 800;
}

.auth-signup:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.demo-login {
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
}

.demo-login a {
    margin-left: 4px;
    color: #2563eb;
    font-weight: 800;
}

.secure-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.secure-login svg {
    width: 13px;
    height: 13px;
}

.register-card {
    max-width: 460px;
}

.register-card .login-heading {
    margin-bottom: 24px;
}

.register-card .form-group {
    margin-bottom: 15px;
}

.register-card .remember-row {
    margin: 2px 0 18px;
}

.register-card .remember-row label {
    line-height: 1.5;
}

.register-card .remember-row span {
    color: #667085;
}

.register-card .remember-row a {
    color: #2563eb;
}

@media (max-width: 980px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        min-height: 100vh;
        padding: 24px 16px;
    }

    .login-card {
        max-width: 460px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 18px;
        color: #0f172a;
        font-family: var(--ep-heading);
        font-size: 1.15rem;
        font-weight: 700;
    }

    .mobile-logo .brand-icon {
        background: #2563eb;
        color: #fff;
        box-shadow: none;
    }
}

@media (max-width: 500px) {
    .auth-right {
        padding: 12px;
    }

    .login-card {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .login-heading h2 {
        font-size: 1.5rem;
    }

    .register-card {
        max-width: 100%;
    }
}
