﻿/* auth.css — isolated Auth UI */
/*:root {
    --bg: #070A12;
    --card: rgba(10,14,26,.78);
    --stroke: rgba(255,255,255,.10);
    --text: #EAF0FF;
    --muted: rgba(234,240,255,.78);
    --danger-bg: rgba(255,80,120,.12);
    --danger-stroke: rgba(255,80,120,.25);
    --accent-a: rgba(102,132,255,1);
    --accent-b: rgba(75,255,196,1);
}*/

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.auth-bg {
    position: fixed;
    inset: -40%;
    background: var(--page-bg);
    color: var(--text);
    filter: blur(18px);
    opacity: .95;
    pointer-events: none;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.auth-card {
    width: min(520px, 100%);
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 22px 20px 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
}

.auth-header {
    margin-bottom: 10px;
}

.auth-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 10px 22px rgba(0,0,0,.45);
}

.auth-product {
    font-weight: 800;
    letter-spacing: .2px;
}

.auth-tagline {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.auth-title {
    font-size: 24px;
    margin: 14px 0 6px;
}

.auth-sub {
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.45;
}

.auth-alert {
    background: var(--danger-bg);
    border: 1px solid var(--danger-stroke);
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-label {
    font-size: 12px;
    color: var(--muted);
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    color: var(--text);
    outline: none;
}

    .auth-input:focus {
        border-color: rgba(102,132,255,.45);
        box-shadow: 0 0 0 3px rgba(102,132,255,.18);
    }

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.auth-link {
    color: #BFD0FF;
    text-decoration: none;
    font-size: 12px;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .18s ease;
}

/* Primary CTA – gradient like screenshot */
.btn-primary {
    background: linear-gradient(135deg, #5F6DFF 0%, #7B5CF0 50%, #8A6BEA 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(100,110,255,.35);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 28px rgba(100,110,255,.45);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

/* Secondary (SSO) */
.btn-ghost {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    color: var(--text);
    backdrop-filter: blur(4px);
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.18);
    }}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 10px;
    color: rgba(234,240,255,.70);
    font-size: 12px;
}

    .divider:before, .divider:after {
        content: "";
        height: 1px;
        background: rgba(255,255,255,.12);
        flex: 1;
    }

.auth-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(234,240,255,.68);
}

    .auth-footer a {
        color: rgba(191,208,255,.92);
        text-decoration: none;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

.sep {
    opacity: .6;
}
.auth-back {
    font-weight: 800;
    font-size: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(109,107,255,.35);
    border-radius: 12px;
    background: rgba(109,107,255,.2);
    text-decoration: none;
    color: #BFD0FF;
}

    .auth-back:hover {
        opacity: .75;
    }
/* pill shape for header buttons */
.btn-pill {
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
}

/* ============================
   Topbar (match home header)
   ============================ */

.auth-topbar {
    position: relative;
    z-index: 2;
    padding: 18px 18px 0;
}

.auth-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

@media (max-width: 768px) {
    .auth-topbar-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .auth-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .auth-actions {
        margin-left: auto;
    }

    .auth-card {
        padding: 16px 14px;
        border-radius: 14px;
    }
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand-badge {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.brand-name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .2px;
}

/* Center nav (optional) */
.auth-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.auth-navlink {
    color: rgba(234,240,255,.78);
    text-decoration: none;
    font-size: 14px;
}

    .auth-navlink:hover {
        color: rgba(234,240,255,.95);
    }

/* Right actions */
.auth-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile: hide center nav */
@media (max-width: 820px) {
    .auth-nav {
        display: none;
    }
}

/* Make the card sit below the topbar */
.auth-wrap {
    padding-top: 18px; /* was 28px; this feels more like home */
}
/* Wider layout variant (used by trial page) */

.auth-body--wide .auth-card {
    width: min(760px, 100%);
}

@media (max-width: 820px) {
    .auth-body--wide .auth-card {
        width: 100%;
    }
}
