* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: #0f0f0f;
    color: rgba(255, 255, 255, .94);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 18px;
}

/* toned-down background glow */
.bg-glow {
    position: fixed;
    inset: -40vh -30vw auto -30vw;
    height: 90vh;
    background:
        radial-gradient(680px 400px at 18% 18%, rgba(255, 255, 255, .045), transparent 62%),
        radial-gradient(560px 320px at 78% 24%, rgba(62, 166, 255, .05), transparent 64%);
    pointer-events: none;
    filter: blur(10px);
    opacity: .8;
    z-index: -1;
}

/* navigation */
header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    background: rgba(15, 15, 15, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, .96);
}

.logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f1f1, #d8d8d8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* buttons */
.btn {
    border: 1px solid rgba(255, 255, 255, .14);
    background: #272727;
    color: rgba(255, 255, 255, .92);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    background: #323232;
    border-color: rgba(255, 255, 255, .18);
}

.btn-primary {
    background: #f1f1f1;
    color: #0f0f0f;
    border-color: rgba(255, 255, 255, .75);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .20);
}

.btn-primary:hover {
    background: #ffffff;
}

/* shared typography */
h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, .98);
}

.sub {
    margin: 0 0 18px;
    max-width: 52ch;
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
    line-height: 1.55;
}

/* Auth/layout helpers */
.center {
    min-height: calc(100vh - 68px);
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.card {
    width: min(520px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: #181818;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    padding: 22px;
}

.card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.muted {
    color: rgba(255, 255, 255, .62);
}

label {
    display: block;
    margin: 12px 0 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #272727;
    color: rgba(255, 255, 255, .94);
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

input:hover,
select:hover,
textarea:hover {
    background: #2f2f2f;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(62, 166, 255, .62);
    box-shadow: 0 0 0 3px rgba(62, 166, 255, .16);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, .40);
}

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

.link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .88);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-weight: 700;
    font-size: 12px;
    opacity: .9;
}

.msg {
    margin-top: 12px;
    font-size: 12px;
}

.msg.err {
    color: #ff8e8e;
}

.msg.ok {
    color: #7cffb3;
}

.logo-img {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    display: block;
}