* {
    box-sizing: border-box;
}

:root {
    --bg-1: #f4f8f7;
    --bg-2: #eef2ff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --purple: #7c3aed;
    --dark: #0f172a;
    --dark-2: #172033;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 24%),
        linear-gradient(135deg, var(--bg-1) 0%, #f8fafc 48%, var(--bg-2) 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

.auth-page {
    min-height: 100vh;
    padding: 20px;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(1160px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

/* LEFT SIDE */
.auth-visual {
    position: relative;
    padding: 28px 28px 24px;
    background:
        linear-gradient(145deg, #0e1a36 0%, #10224a 45%, #122b52 100%);
    color: #ffffff;
    overflow: hidden;
}

.auth-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.9;
    pointer-events: none;
}

.auth-glow-one {
    width: 220px;
    height: 220px;
    top: -30px;
    left: -40px;
    background: rgba(34, 197, 94, 0.12);
}

.auth-glow-two {
    width: 220px;
    height: 220px;
    right: -60px;
    top: 70px;
    background: rgba(59, 130, 246, 0.14);
}

.auth-glow-three {
    width: 180px;
    height: 180px;
    left: 60px;
    bottom: -50px;
    background: rgba(124, 58, 237, 0.14);
}

.auth-brand {
    position: relative;
    z-index: 2;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.auth-brand img,
.auth-mobile-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.auth-brand-text strong,
.auth-mobile-brand strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.auth-brand-text span,
.auth-mobile-brand span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    margin-top: 44px;
    max-width: 560px;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(134, 239, 172, 0.18);
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.auth-visual-content h1 {
    margin: 22px 0 14px;
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -1.8px;
    font-weight: 700;
}

.auth-visual-content h1 span {
    display: block;
    background: linear-gradient(135deg, #a7f3d0 0%, #93c5fd 52%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-visual-content p {
    margin: 0;
    max-width: 500px;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.82);
}

.auth-mini-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.auth-mini-card {
    min-height: 150px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.auth-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.10);
    font-size: 20px;
}

.auth-mini-card h3 {
    margin: 14px 0 8px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff;
}

.auth-mini-card p {
    font-size: 13px;
    line-height: 1.65;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.74);
}

/* RIGHT SIDE */
.auth-panel {
    padding: 28px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.90));
}

.auth-mobile-brand {
    display: none;
}

.auth-card {
    width: min(460px, 100%);
    padding: 34px 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid #edf2f7;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.auth-card-head {
    margin-bottom: 18px;
}

.auth-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--green);
    text-transform: uppercase;
}

.auth-card-head h2 {
    margin: 8px 0 10px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 700;
    color: var(--dark);
}

.auth-card-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
    color: var(--muted);
}

.auth-alert {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.auth-alert.success {
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.auth-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.auth-input {
    min-height: 56px;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    border-radius: 18px;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    overflow: hidden;
    transition: 0.2s ease;
}

.auth-input:focus-within {
    border-color: rgba(37, 99, 235, 0.32);
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.06);
}

.auth-input-icon {
    display: grid;
    place-items: center;
    height: 100%;
    color: #64748b;
    font-size: 16px;
    border-right: 1px solid #e5e7eb;
}

.auth-input input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.auth-input input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.auth-check input {
    width: 16px;
    height: 16px;
}

.auth-back-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
}

.auth-submit {
    min-height: 56px;
    margin-top: 6px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #16a34a 0%, #2563eb 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
    transition: 0.22s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(37, 99, 235, 0.24);
}

.auth-submit b {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 600;
}

.auth-demo-box {
    margin-top: 22px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: linear-gradient(145deg, #13203c 0%, #1c2a46 100%);
    color: #ffffff;
}

.auth-demo-head {
    margin-bottom: 14px;
}

.auth-demo-head strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #86efac;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-demo-head small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.74);
}

.auth-demo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-demo-item + .auth-demo-item {
    margin-top: 10px;
}

.auth-demo-item span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.84);
}

.auth-demo-item code {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        padding: 24px;
    }

    .auth-mobile-brand {
        width: min(460px, 100%);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .auth-mobile-brand strong {
        font-size: 15px;
        font-weight: 700;
        color: var(--dark);
    }

    .auth-mobile-brand span {
        font-size: 12px;
        color: var(--muted);
        font-weight: 500;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 12px;
    }

    .auth-shell {
        border-radius: 24px;
    }

    .auth-panel {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .auth-card-head h2 {
        font-size: 28px;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-demo-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-demo-item code {
        word-break: break-all;
    }
}

/* =========================================================
   REGISTER PAGE SMALL ENHANCEMENT
   ========================================================= */

.auth-shell-register {
    min-height: 720px;
}

.auth-switch-box {
    margin-top: 22px;
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.auth-switch-box span {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

.auth-switch-box a {
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.auth-switch-box a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-switch-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   GOOGLE AUTH BUTTON
   ========================================================= */

.auth-google-btn {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.auth-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.auth-google-btn .google-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.auth-google-btn strong {
    font-size: 14px;
    font-weight: 600;
}

.auth-divider {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    white-space: nowrap;
}

.auth-switch-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 13px;
}

.auth-switch-box span {
    color: #64748b;
}

.auth-switch-box a {
    color: #15803d;
    text-decoration: none;
    font-weight: 600;
}