/* Channting Veds auth — brand palette from channtingveds.com */
:root {
    --auth-ink: #1a1a1a;
    --auth-ink-soft: #555555;
    --auth-sky: #2f8aee;
    --auth-sky-deep: #1f74d4;
    --auth-navy: #0b6db5;
    --auth-navy-deep: #085a96;
    --auth-coral: #de4051;
    --auth-coral-deep: #c93448;
    --auth-mist: #f3f7fb;
    --auth-paper: #ffffff;
    --auth-line: rgba(11, 109, 181, 0.12);
    --auth-danger: #b42318;
    --auth-success: #067647;
    --auth-radius: 16px;
    --auth-radius-pill: 50px;
    --auth-font-display: "Syne", "Segoe UI", sans-serif;
    --auth-font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

.auth-body {
    font-family: var(--auth-font-body);
    color: var(--auth-ink);
    background: var(--auth-mist);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    overflow: hidden;
}

.auth-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 15%, rgba(11, 109, 181, 0.35), transparent 60%),
        radial-gradient(ellipse 55% 45% at 10% 90%, rgba(47, 138, 238, 0.22), transparent 55%),
        linear-gradient(155deg, #0b6db5 0%, #1278c4 38%, #eaf4fd 72%, #ffffff 100%);
}

.auth-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

.auth-grid {
    display: none;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(44px);
    opacity: 0.45;
    animation: auth-drift 12s ease-in-out infinite alternate;
}

.auth-orb--a {
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    top: -10%;
    right: -8%;
    background: radial-gradient(circle, rgba(222, 64, 81, 0.35), transparent 70%);
}

.auth-orb--b {
    width: min(40vw, 340px);
    height: min(40vw, 340px);
    bottom: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(47, 138, 238, 0.4), transparent 70%);
    animation-delay: -4s;
}

@keyframes auth-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-18px, 14px) scale(1.06); }
}

.auth-main {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.auth-panel {
    width: min(100%, 420px);
    background: var(--auth-paper);
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    padding: clamp(1.4rem, 4vw, 2rem);
    box-shadow: 0 16px 40px rgba(11, 109, 181, 0.18);
    animation: auth-rise 0.65s ease both;
    opacity: 1;
}

.auth-panel__title {
    margin: 0;
    font-family: var(--auth-font-display);
    font-size: clamp(1.45rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--auth-ink);
}

.auth-panel__subtitle {
    margin: 0.45rem 0 0;
    color: var(--auth-ink-soft);
    font-size: 0.98rem;
    line-height: 1.45;
}

.auth-alert {
    margin-top: 1.1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.auth-alert--error {
    background: #fef3f2;
    color: var(--auth-danger);
    border: 1px solid #fecdca;
}

.auth-alert--success {
    background: #ecfdf3;
    color: var(--auth-success);
    border: 1px solid #abefc6;
}

.auth-alert__list {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-form {
    margin-top: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--auth-ink);
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
    width: 100%;
    appearance: none;
    border: 1.5px solid #cfd8e3;
    background: #fff;
    color: var(--auth-ink);
    border-radius: 12px;
    padding: 0.78rem 0.9rem;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-sky);
    box-shadow: 0 0 0 3px rgba(47, 138, 238, 0.22);
}

.auth-field input.is-invalid {
    border-color: #f97066;
}

.auth-field .invalid-feedback {
    display: block;
    color: var(--auth-danger);
    font-size: 0.85rem;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--auth-ink-soft);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-navy);
}

.auth-link {
    color: var(--auth-sky);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-sky-deep);
    text-decoration: underline;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
    border: 0;
    border-radius: var(--auth-radius-pill);
    padding: 0.9rem 1.25rem;
    background: var(--auth-coral);
    color: #fff;
    font-family: var(--auth-font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    background: var(--auth-coral-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(222, 64, 81, 0.3);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(222, 64, 81, 0.35);
    outline-offset: 2px;
}

.auth-meta {
    margin-top: 1.15rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--auth-ink-soft);
}

.auth-meta .auth-link {
    margin-left: 0.25rem;
}

.auth-inline-form {
    display: inline;
}

.auth-inline-form .auth-link-btn {
    border: 0;
    background: none;
    padding: 0;
    color: var(--auth-sky);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-panel {
        padding: 1.25rem;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-orb,
    .auth-panel {
        animation: none;
    }

    .auth-submit:hover {
        transform: none;
    }
}
