:root {
    --auth-bg: #f8fafc;
    --auth-card: rgba(255, 255, 255, 0.72);
    --auth-card-solid: #ffffff;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-border: rgba(148, 163, 184, 0.24);
    --auth-accent-a: #8b5cf6;
    --auth-accent-b: #3b82f6;
    --auth-accent-c: #14b8a6;
    --auth-chip-bg: rgba(139, 92, 246, 0.12);
    --auth-chip-text: #6d28d9;
    --auth-input-bg: rgba(255, 255, 255, 0.86);
    --auth-success-bg: rgba(220, 252, 231, 0.8);
    --auth-success-text: #065f46;
    --auth-error-bg: rgba(254, 226, 226, 0.86);
    --auth-error-text: #991b1b;
    --auth-info-bg: rgba(219, 234, 254, 0.82);
    --auth-info-text: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --auth-bg: #111827;
        --auth-card: rgba(31, 41, 55, 0.7);
        --auth-card-solid: #1f2937;
        --auth-text: #f9fafb;
        --auth-muted: #9ca3af;
        --auth-border: rgba(148, 163, 184, 0.16);
        --auth-chip-bg: rgba(91, 33, 182, 0.28);
        --auth-chip-text: #d8b4fe;
        --auth-input-bg: rgba(17, 24, 39, 0.72);
        --auth-success-bg: rgba(6, 78, 59, 0.36);
        --auth-success-text: #a7f3d0;
        --auth-error-bg: rgba(127, 29, 29, 0.42);
        --auth-error-text: #fecaca;
        --auth-info-bg: rgba(30, 64, 175, 0.32);
        --auth-info-text: #bfdbfe;
    }
}

* {
    box-sizing: border-box;
}

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

body.auth-body {
    font-family: "Poppins", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 34%),
        radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.14), transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.16), transparent 46%),
        var(--auth-bg);
}

.auth-ambient {
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 36%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.07), transparent 28%);
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

.auth-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    background: rgba(255, 255, 255, 0.44);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
    .auth-nav {
        background: rgba(17, 24, 39, 0.48);
        border-bottom-color: rgba(255, 255, 255, 0.04);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
    }
}

.auth-nav__inner,
.auth-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.auth-nav__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.auth-brand__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.auth-brand__name {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-family: "Nunito Sans", sans-serif;
    line-height: 1;
}

.auth-brand__duetly {
    font-size: 1.32rem;
    font-weight: 800;
    color: #4c7cff;
}

.auth-brand__studio {
    font-size: 1.04rem;
    font-weight: 700;
    color: #8a90a3;
}

@media (prefers-color-scheme: dark) {
    .auth-brand__duetly {
        color: #7aa2ff;
    }

    .auth-brand__studio {
        color: #b3b8c8;
    }
}

.auth-nav__links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.auth-nav__link {
    text-decoration: none;
    color: var(--auth-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.auth-nav__link:hover,
.auth-nav__link.is-active {
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.46);
}

.auth-nav__link--ghost {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(59, 130, 246, 0.1));
}

@media (prefers-color-scheme: dark) {
    .auth-nav__link:hover,
    .auth-nav__link.is-active {
        background: rgba(255, 255, 255, 0.08);
    }
}

.auth-shell {
    padding: 3.2rem 0 4rem;
}

.auth-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
    gap: 2rem;
    align-items: stretch;
}

.auth-hero__copy {
    padding: 1rem 0.25rem;
    align-self: center;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    background: var(--auth-chip-bg);
    color: var(--auth-chip-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-hero__title {
    margin: 1.15rem 0 1rem;
    font-size: clamp(2.1rem, 4.2vw, 4.2rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--auth-text);
}

.auth-gradient {
    background: linear-gradient(135deg, var(--auth-accent-a), var(--auth-accent-b), var(--auth-accent-c));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-hero__text {
    margin: 0;
    max-width: 44rem;
    color: var(--auth-muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.auth-hero__meta {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-meta-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 1.2rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-meta-card__label {
    display: block;
    color: var(--auth-muted);
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
}

.auth-meta-card__value {
    display: block;
    color: var(--auth-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.auth-panel {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 1.8rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}

.auth-card {
    padding: 1.6rem;
}

.auth-card__header {
    margin-bottom: 1.25rem;
}

.auth-card__eyebrow {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-muted);
    margin-bottom: 0.55rem;
}

.auth-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.8rem;
    line-height: 1.15;
    color: var(--auth-text);
}

.auth-card__subtitle {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.auth-form {
    display: grid;
    gap: 0.95rem;
}

.auth-grid {
    display: grid;
    gap: 0.95rem;
}

.auth-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
    display: grid;
    gap: 0.45rem;
}

.auth-field__label {
    color: var(--auth-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--auth-border);
    background: var(--auth-input-bg);
    color: var(--auth-text);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.auth-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.42);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.auth-button {
    margin-top: 0.35rem;
    border: 0;
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    font: inherit;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--auth-accent-a), var(--auth-accent-b));
    box-shadow: 0 18px 30px rgba(99, 102, 241, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(99, 102, 241, 0.24);
}

.auth-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.auth-button--muted {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.92), rgba(100, 116, 139, 0.92));
    box-shadow: none;
}

.auth-card__footer {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.auth-inline-link {
    color: #4f7cff;
    text-decoration: none;
    font-weight: 600;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.auth-card__divider {
    color: var(--auth-muted);
}

.auth-message,
.auth-success {
    margin-top: 0.95rem;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    font-size: 0.94rem;
    line-height: 1.6;
}

.auth-message {
    background: var(--auth-error-bg);
    color: var(--auth-error-text);
}

.auth-message--info {
    background: var(--auth-info-bg);
    color: var(--auth-info-text);
}

.auth-success {
    background: var(--auth-success-bg);
    color: var(--auth-success-text);
}

@media (max-width: 1024px) {
    .auth-hero {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .auth-nav__inner {
        min-height: 68px;
        padding: 0.25rem 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .auth-shell {
        padding-top: 2rem;
    }

    .auth-grid--two,
    .auth-hero__meta {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.1rem;
    }

    .auth-card__title {
        font-size: 1.5rem;
    }
}

