:root {
    --bg: #F3E9FF;
    --ink: #241B2F;
    --muted: rgba(36, 27, 47, .65);
    --card: rgba(255, 255, 255, .38);
    --card-2: rgba(255, 255, 255, .26);
    --stroke: rgba(255, 255, 255, .55);
    --stroke-2: rgba(36, 27, 47, .10);
    --shadow: 0 18px 60px rgba(26, 12, 40, .18);
    --shadow-soft: 0 10px 30px rgba(26, 12, 40, .10);
    --radius: 22px;
    --radius-sm: 14px;
    --accent: #6C2BD9;
    --accent-2: #FF8A5C;
    --focus: rgba(108, 43, 217, .28);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

/* SVG background is placed fixed behind everything */
.bg-svg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

/* subtle grain (helps “Apple glass” feel) */
.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

.wrap {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.shell {
    width: min(440px, 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Left “brand” panel (minimal) */
.brand {
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .28));
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.brand:before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(700px 260px at 10% 10%, rgba(108, 43, 217, .18), transparent 60%),
        radial-gradient(600px 260px at 80% 30%, rgba(255, 138, 92, .20), transparent 60%),
        radial-gradient(600px 340px at 40% 110%, rgba(255, 205, 165, .35), transparent 55%);
    filter: blur(2px);
    z-index: 0;
}

.brand>* {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(108, 43, 217, .22);
    object-fit: cover;
}

.logo-title {
    font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 28px;
    line-height: 1.1;
}

.logo-sub {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: .2px;
}

.headline {
    margin: 26px 0 10px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -.4px;
    font-weight: 700;
}

.lead {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 44ch;
    font-size: 14.5px;
    line-height: 1.6;
}

.feature-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(255, 255, 255, .65);
    color: rgba(36, 27, 47, .78);
    font-size: 12.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(108, 43, 217, .9);
    box-shadow: 0 0 0 6px rgba(108, 43, 217, .14);
}

/* Right “glass” auth card (Apple glass vibe) */
.card-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.card-logo .mark {
    margin-bottom: 12px;
}

.card {
    width: 100%;
    border-radius: calc(var(--radius) + 6px);
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, .18));
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    position: relative;
    overflow: hidden;
}

/* inner “glass edge” highlight */
.card:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%),
        radial-gradient(900px 300px at 20% 10%, rgba(255, 255, 255, .45), transparent 55%);
    opacity: .55;
    pointer-events: none;
}

/* subtle top highlight line (like polished glass) */
.card:after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
    opacity: .9;
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 1;
    padding: 8px;
}

.tabs {
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: transparent;
    border: none;
    gap: 6px;
    margin-bottom: 16px;
}

.tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.tab[aria-selected="true"] {
    background: rgba(255, 255, 255, .62);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.tab:hover:not([aria-selected="true"]) {
    background: rgba(255, 255, 255, 0.2);
}

.tab:active {
    transform: scale(.98);
}

.panel {
    padding: 8px 4px;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    border: none;
    box-shadow: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    display: block;
    margin: 12px 0 6px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .40);
    border: 1px solid rgba(36, 27, 47, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .40);
    transition: all .2s ease;
}

.field:focus-within {
    border-color: rgba(108, 43, 217, .30);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .50),
        0 0 0 4px var(--focus);
    background: rgba(255, 255, 255, .60);
}

.icon {
    width: 18px;
    height: 18px;
    opacity: .6;
    flex: 0 0 auto;
}

input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
    font-family: inherit;
}

input::placeholder {
    color: rgba(36, 27, 47, .3);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(36, 27, 47, .72);
    user-select: none;
}

.check input {
    width: auto;
}

.link {
    color: rgba(108, 43, 217, .92);
    text-decoration: none;
    font-weight: 800;
    font-size: 12.5px;
}

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

.btn {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 10px 25px rgba(108, 43, 217, .20);
    transition: all .2s ease;
}

.btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(108, 43, 217, .25);
}

.btn:active {
    transform: translateY(0);
}

.or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 10px;
    color: rgba(36, 27, 47, .50);
    font-size: 12px;
    font-weight: 700;
}

.or:before,
.or:after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(36, 27, 47, .12), transparent);
}

.social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sbtn {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(36, 27, 47, .10);
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    color: rgba(36, 27, 47, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
    transition: transform .15s ease, background .2s ease;
}

.sbtn:hover {
    background: rgba(255, 255, 255, .64);
}

.sbtn:active {
    transform: translateY(1px);
}

.fineprint {
    margin-top: 20px;
    font-size: 11px;
    text-align: center;
    color: var(--muted);
}

/* responsive */
@media (max-width: 920px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .headline {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 20px 16px;
    }

    .card {
        padding: 14px;
    }
}

/* Google Auth Button Styles */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(36, 27, 47, 0.15), transparent);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(36, 27, 47, 0.08);
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 6px 16px rgba(0, 0, 0, 0.08);
}

.google-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    overflow: hidden;
}