/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — Login / Register
   Matches the hp3 homepage/landing design language: magenta→coral
   hero gradient, Anton display headline, Inter body, chunky buttons.
   All scoped under .owc-auth so it can never bleed into other pages.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@1,700&display=swap');

.owc-auth {
    --auth-magenta:    #EC1683;
    --auth-coral:      #FF6B47;
    --auth-plum:       #3B0B36;
    --auth-ink:        #181225;
    --auth-muted:      #6B5F7A;
    --auth-yellow:     #FFD60A;

    position: fixed;
    inset: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--auth-ink);
    background: linear-gradient(180deg, #EC1683 0%, #F03077 38%, #FF5A4B 100%);
    -webkit-font-smoothing: antialiased;
}

/* Subtle confetti accents in the far corners, like the promo banner. */
.owc-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-repeat: no-repeat;
    background-image:
        radial-gradient(circle at 6% 16%,  #FFD60A 0 6px, transparent 7px),
        radial-gradient(circle at 12% 72%, #36C5C0 0 5px, transparent 6px),
        radial-gradient(circle at 90% 22%, #FFD60A 0 5px, transparent 6px),
        radial-gradient(circle at 94% 78%, #2EB5E8 0 6px, transparent 7px);
}

.owc-auth__logo {
    position: relative;
    z-index: 1;
    height: 46px;
    width: auto;
    display: block;
}

/* ── Card ─────────────────────────────────────────────────────── */
.owc-auth__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(27, 4, 24, 0.35);
    padding: 2.5rem 2.25rem 2.25rem;
}

.owc-auth__title {
    font-family: 'Anton', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: 2.1rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--auth-plum);
    margin: 0 0 0.25rem;
    line-height: 1.05;
}

.owc-auth__subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.02rem;
    color: var(--auth-muted);
    margin: 0 0 1.75rem;
}

/* ── Fields ───────────────────────────────────────────────────── */
.owc-auth__field {
    margin-bottom: 1.1rem;
}

.owc-auth__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-ink);
    margin-bottom: 0.4rem;
}

.owc-auth__optional {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--auth-muted);
}

/* Info icon + hover/focus tooltip (used on the optional Substack field). */
.owc-auth__info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-left: 0.35rem;
    border-radius: 50%;
    background: var(--auth-magenta);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    font-style: italic;
    cursor: help;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
}

.owc-auth__tooltip {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 240px;
    background: var(--auth-plum);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(27, 4, 24, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

.owc-auth__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--auth-plum);
}

.owc-auth__info:hover .owc-auth__tooltip,
.owc-auth__info:focus .owc-auth__tooltip,
.owc-auth__info:focus-within .owc-auth__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.owc-auth__input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--auth-ink);
    background: #FBF7FA;
    border: 2px solid #ECE2EA;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.owc-auth__input::placeholder { color: #B7AEC0; }
.owc-auth__input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--auth-magenta);
    box-shadow: 0 0 0 4px rgba(236, 22, 131, 0.14);
}

/* Two fields side by side (first/last name) */
.owc-auth__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
@media (max-width: 440px) {
    .owc-auth__row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Inline field hint (e.g. "Forgot password?") ──────────────── */
.owc-auth__field-hint {
    margin: 0.4rem 0 0;
    text-align: right;
    font-size: 0.82rem;
}
.owc-auth__field-hint a {
    color: var(--auth-magenta);
    font-weight: 600;
    text-decoration: none;
}
.owc-auth__field-hint a:hover { text-decoration: underline; }

/* ── Remember-me checkbox ─────────────────────────────────────── */
.owc-auth__check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
}
.owc-auth__check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--auth-magenta);
    cursor: pointer;
}
.owc-auth__check label {
    font-size: 0.9rem;
    color: var(--auth-ink);
    cursor: pointer;
}

/* ── Submit button — hp3 chunky style ─────────────────────────── */
.owc-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--auth-magenta);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 0 #B30E63;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.owc-auth__btn:hover {
    background: #F32A92;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #B30E63;
}
.owc-auth__btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #B30E63;
}

/* ── Prose paragraph (confirmation / info pages) ──────────────── */
.owc-auth__prose {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--auth-ink);
    margin: 0 0 1.25rem;
}
.owc-auth__prose strong { color: var(--auth-plum); }

/* ── Footer link line ─────────────────────────────────────────── */
.owc-auth__alt {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: var(--auth-muted);
}
.owc-auth__alt a {
    color: var(--auth-magenta);
    font-weight: 700;
    text-decoration: none;
}
.owc-auth__alt a:hover { text-decoration: underline; }

/* ── Alerts + validation ──────────────────────────────────────── */
.owc-auth__error {
    background: #FDECEF;
    border: 1px solid #F5B5C2;
    color: #B0214A;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Blazor's ValidationMessage / ValidationSummary render these classes. */
.owc-auth .validation-message {
    display: block;
    color: #C81E4A;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}
.owc-auth .validation-errors {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    background: #FDECEF;
    border: 1px solid #F5B5C2;
    border-radius: 10px;
}
.owc-auth .validation-errors li {
    color: #B0214A;
    font-size: 0.85rem;
}

/* Invalid field highlight (Blazor adds .invalid on failed validation). */
.owc-auth__input.invalid {
    border-color: #E0738C;
    background: #FFF7F9;
}
