:root {
    --bg: #08090c;
    --bg-soft: #101218;
    --card: rgba(20, 22, 29, .82);
    --card-border: rgba(255, 255, 255, .09);

    --text: #f5f7fa;
    --muted: #9299a6;

    --accent: #7c5cff;
    --accent-hover: #6b4ff0;

    --danger: #ff5c6c;
    --success: #35d07f;

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(124, 92, 255, .18),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 90%,
            rgba(0, 180, 255, .10),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */

.header {
    width: 100%;
    padding: 22px 28px;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.logo-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #8b6cff,
            #5b3bea
        );

    box-shadow:
        0 8px 30px rgba(124, 92, 255, .3);
}

.logo-mark::after {
    content: "P";

    font-size: 16px;
    font-weight: 800;
    color: white;
}

.logo span {
    color: #fff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    color: var(--muted);
    padding: 9px 13px;
    border-radius: 9px;
    transition: .2s;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,.06);
}

/* --------------------------------------------------
   Main
-------------------------------------------------- */

.main {
    flex: 1;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 50px 24px 80px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------
   Auth
-------------------------------------------------- */

.auth-wrapper {
    width: 100%;
    max-width: 430px;
}

.auth-card {
    background: var(--card);

    border: 1px solid var(--card-border);

    border-radius: var(--radius);

    padding: 34px;

    backdrop-filter: blur(20px);

    box-shadow:
        0 30px 100px rgba(0,0,0,.35);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    margin: 0 0 9px;

    font-size: 29px;
    letter-spacing: -.8px;
}

.auth-header p {
    margin: 0;

    color: var(--muted);
    line-height: 1.5;
}

/* --------------------------------------------------
   Forms
-------------------------------------------------- */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;
}

.input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;

    outline: none;

    background: rgba(255,255,255,.045);

    color: var(--text);

    transition:
        border-color .2s,
        background .2s,
        box-shadow .2s;
}

.input::placeholder {
    color: #656b77;
}

.input:focus {
    border-color: rgba(124,92,255,.8);

    background: rgba(255,255,255,.06);

    box-shadow:
        0 0 0 4px rgba(124,92,255,.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: none;

    color: var(--muted);

    cursor: pointer;
}

.password-toggle:hover {
    color: white;
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.btn {
    width: 100%;

    border: 0;
    border-radius: 11px;

    padding: 13px 16px;

    cursor: pointer;

    font-weight: 650;

    transition:
        transform .15s,
        background .2s,
        box-shadow .2s;
}

.btn-primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #6244e8
        );

    box-shadow:
        0 10px 30px rgba(124,92,255,.22);
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #896eff,
            var(--accent-hover)
        );

    transform: translateY(-1px);

    box-shadow:
        0 14px 35px rgba(124,92,255,.3);
}

.btn-secondary {
    color: var(--text);

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.08);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.09);
}

/* --------------------------------------------------
   Messages
-------------------------------------------------- */

.message {
    padding: 12px 14px;

    margin-bottom: 18px;

    border-radius: 10px;

    font-size: 14px;
    line-height: 1.45;
}

.message-error {
    color: #ffb6bd;

    background: rgba(255,92,108,.10);

    border: 1px solid rgba(255,92,108,.20);
}

.message-success {
    color: #a7f3c9;

    background: rgba(53,208,127,.10);

    border: 1px solid rgba(53,208,127,.20);
}

/* --------------------------------------------------
   Links
-------------------------------------------------- */

.auth-footer {
    margin-top: 24px;

    text-align: center;

    color: var(--muted);

    font-size: 14px;
}

.auth-footer a {
    color: #a995ff;
    font-weight: 600;
}

.auth-footer a:hover {
    color: white;
}

/* --------------------------------------------------
   Home
-------------------------------------------------- */

.hero {
    width: 100%;
    max-width: 800px;

    text-align: center;
}

.hero-badge {
    display: inline-flex;

    padding: 7px 12px;

    border-radius: 999px;

    background: rgba(124,92,255,.10);

    border: 1px solid rgba(124,92,255,.20);

    color: #b7a9ff;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 22px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(42px, 7vw, 72px);

    line-height: 1;

    letter-spacing: -3px;
}

.hero h1 span {
    background:
        linear-gradient(
            135deg,
            #a993ff,
            #6f51ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 620px;

    margin: 24px auto 30px;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;

    justify-content: center;

    gap: 12px;
}

.hero-actions .btn {
    width: auto;
    min-width: 145px;
}

/* --------------------------------------------------
   Account
-------------------------------------------------- */

.account-card {
    width: 100%;
    max-width: 650px;

    background: var(--card);

    border: 1px solid var(--card-border);

    border-radius: var(--radius);

    padding: 30px;

    backdrop-filter: blur(20px);
}

.account-title {
    margin-bottom: 25px;
}

.account-title h1 {
    margin: 0 0 7px;

    font-size: 28px;
}

.account-title p {
    margin: 0;
    color: var(--muted);
}

.user-info {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 25px;
}

.info-item {
    padding: 16px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.06);

    border-radius: 12px;
}

.info-label {
    color: var(--muted);

    font-size: 12px;

    margin-bottom: 6px;
}

.info-value {
    font-size: 15px;

    word-break: break-word;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.footer {
    padding: 25px;

    text-align: center;

    color: #666c77;

    font-size: 13px;
}

/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 600px) {

    .header {
        padding: 17px;
    }

    .nav {
        display: none;
    }

    .main {
        padding: 30px 16px 50px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .hero h1 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .user-info {
        grid-template-columns: 1fr;
    }
}