@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap");

:root {
    --auth-navy: #10233f;
    --auth-blue: #28699f;
    --auth-blue-soft: #f1f7fc;
    --auth-amber: #eda91f;
    --auth-amber-soft: #fff9eb;
    --auth-canvas: #f5f3ed;
    --auth-border: #dedbd2;
    --auth-muted: #67758a;
}

body.public-auth {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 15%, rgba(237, 169, 31, 0.16), transparent 25rem),
        radial-gradient(circle at 82% 12%, rgba(40, 105, 159, 0.12), transparent 28rem),
        var(--auth-canvas);
    color: var(--auth-navy);
    font-family: "DM Sans", sans-serif;
}

.public-auth .left-panel {
    width: min(42vw, 500px);
    min-width: 380px;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5rem);
    border-right: 1px solid var(--auth-border);
    background:
        linear-gradient(155deg, rgba(255, 240, 201, 0.86), rgba(241, 247, 252, 0.92)),
        #fffefa;
}

.public-auth .left-panel::before {
    top: -120px;
    right: -100px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(40, 105, 159, 0.15);
    background: rgba(255, 255, 255, 0.32);
}

.public-auth .left-panel::after {
    bottom: -70px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(237, 169, 31, 0.18);
}

.public-auth .brand {
    color: var(--auth-navy);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 400;
    letter-spacing: -0.035em;
}

.public-auth .brand .match,
.public-auth .slide-headline .hl {
    color: #b97800;
}

.public-auth .slide-headline {
    color: var(--auth-navy);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.public-auth .slide-sub {
    max-width: 360px;
    color: var(--auth-muted);
}

.public-auth .dot {
    background: rgba(40, 105, 159, 0.2);
}

.public-auth .dot.active {
    background: var(--auth-amber);
}

.public-auth .right-panel {
    padding: clamp(1.5rem, 5vw, 4rem);
}

.public-auth .login-box,
.public-auth .register-box {
    max-width: 470px;
    padding: clamp(1.6rem, 4vw, 2.75rem);
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background: rgba(255, 254, 250, 0.96);
    box-shadow: 0 20px 55px rgba(16, 35, 63, 0.1);
}

.public-auth .login-box h2,
.public-auth .register-box h2 {
    color: var(--auth-navy);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.public-auth .login-box .subtitle,
.public-auth .register-box .subtitle {
    color: var(--auth-muted);
}

.public-auth label {
    color: var(--auth-navy);
}

.public-auth input,
.public-auth select {
    min-height: 46px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #ffffff;
}

.public-auth input:focus,
.public-auth select:focus {
    border-color: var(--auth-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(40, 105, 159, 0.15);
}

.public-auth button[type="submit"],
.public-auth .btn {
    min-height: 46px;
    border-radius: 10px;
    background: var(--auth-amber);
    color: var(--auth-navy);
    font-weight: 800;
}

.public-auth button[type="submit"]:hover,
.public-auth .btn:hover {
    background: #d88f00;
}

.public-auth .free-credits {
    border-color: #f5cf77;
    background: var(--auth-amber-soft);
    color: var(--auth-navy);
}

.public-auth .free-credits strong {
    color: #a96f00;
}

@media (max-width: 760px) {
    body.public-auth {
        display: block;
    }

    .public-auth .left-panel {
        width: 100%;
        min-width: 0;
        padding: 2rem 1.5rem;
        border-right: 0;
        border-bottom: 1px solid var(--auth-border);
    }

    .public-auth .brand {
        margin-bottom: 1.5rem;
    }

    .public-auth .slides-wrapper {
        min-height: 120px;
    }

    .public-auth .dots {
        margin-top: 1rem;
    }
}
