/* ============================================================
   Corebyte - member sign in / sign up / reset
   Full-bleed glacier gradient, floating logo, soft rounded fields and
   one big pill button. No boxed card: the form sits on a frosted sheet.
   ============================================================ */

:root {
    --cb-lime: #c6f432;
    --cb-ink: #14111f;
    --cb-blue: #6a4dff;
    --cb-cyan: #17c3b2;
    --cb-line: #e1ddf2;
    --cb-muted: #6c6788;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body.auth-body {
    min-height: 100vh;
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--cb-ink);
    background:
        radial-gradient(60% 40% at 90% 0%, rgba(198, 244, 50, 0.22), transparent 62%),
        radial-gradient(70% 50% at 0% 10%, rgba(138, 109, 255, 0.55), transparent 62%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1.5px, transparent 0) 0 0 / 26px 26px,
        linear-gradient(180deg, #14111f 0%, #1d1650 60%, #2a1b8f 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 440px;
    margin: 0 auto;
    padding: 34px 22px 30px;
}

.auth-card {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.auth-brand-logo {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 10px;
    border-radius: 28px;
    box-shadow: 0 18px 34px rgba(106, 77, 255, 0.3);
}

.auth-brand-name {
    display: block;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.auth-brand h1 {
    margin: 14px 0 4px;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cb-lime);
}

.auth-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
}

.auth-alert {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-alert-error {
    background: #ffe3f1;
    color: #b3261e;
}

.auth-alert-success {
    background: #e2f6ee;
    color: #0e7a52;
}

.auth-alert-info,
.auth-alert-warning {
    background: #e6e0ff;
    color: #4a30d6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 24px 50px rgba(106, 77, 255, 0.14);
}

.auth-label {
    margin: 8px 0 2px 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--cb-muted);
}

.auth-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    background: #efecfa;
    color: var(--cb-ink);
    font: inherit;
    font-size: 0.96rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
    color: #9a96b4;
}

.auth-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--cb-blue);
    box-shadow: 0 0 0 4px rgba(106, 77, 255, 0.14);
}

.password-field {
    position: relative;
}

.password-field .auth-input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cb-muted);
    cursor: pointer;
}

.auth-button {
    height: 54px;
    margin-top: 16px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--cb-blue), #8a6dff 60%, var(--cb-cyan));
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(106, 77, 255, 0.32);
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-button:active {
    transform: translateY(1px);
    box-shadow: 0 8px 16px rgba(106, 77, 255, 0.3);
}

.auth-links {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    font-size: 0.88rem;
}

.auth-links a,
.auth-footnote a {
    color: var(--cb-blue);
    font-weight: 700;
    text-decoration: none;
}

.auth-footnote {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
    text-align: center;
}

.auth-footnote a {
    color: var(--cb-lime);
}

.auth-brand-logo {
    box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.9), 0 18px 34px rgba(0, 0, 0, 0.45);
}

body.auth-body .auth-brand h1 {
    color: var(--cb-lime);
}

body.auth-body .auth-brand-name {
    color: #ffffff;
}

body.auth-body .auth-form {
    background: #ffffff;
}
