:root {
    color-scheme: dark;

    --background: #080b10;
    --surface: rgba(15, 20, 29, 0.88);
    --surface-border: rgba(95, 178, 255, 0.18);

    --text-primary: #f4f7fb;
    --text-secondary: #929dad;
    --text-muted: #657184;

    --accent: #48a9ff;
    --accent-light: #75c2ff;
    --accent-dark: #126fc3;

    --button-dark: #151c27;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text-primary);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(39, 124, 201, 0.15),
            transparent 42%
        ),
        var(--background);
}

a {
    color: inherit;
}

.welcome-page {
    position: relative;

    min-height: 100vh;
    padding: 32px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.background-grid {
    position: absolute;
    inset: 0;

    opacity: 0.14;

    background-image:
        linear-gradient(
            rgba(89, 168, 238, 0.09) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(89, 168, 238, 0.09) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.9),
            transparent 82%
        );
}

.background-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(100px);
    opacity: 0.14;

    background: var(--accent);
}

.background-glow-left {
    left: -260px;
    top: 15%;
}

.background-glow-right {
    right: -280px;
    bottom: 5%;
}

.welcome-card {
    position: relative;
    z-index: 2;

    width: min(100%, 520px);
    padding: 46px 38px 30px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(19, 25, 36, 0.95),
            rgba(10, 14, 21, 0.95)
        );

    border: 1px solid var(--surface-border);
    border-radius: 28px;

    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    backdrop-filter: blur(18px);
}

.logo {
    position: relative;

    width: 96px;
    height: 108px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            rgba(255, 214, 72, 0.25),
            rgba(148, 103, 0, 0.45)
        );

    clip-path: polygon(
        25% 6.7%,
        75% 6.7%,
        100% 50%,
        75% 93.3%,
        25% 93.3%,
        0 50%
    );

    filter:
        drop-shadow(0 0 12px rgba(255, 205, 55, 0.45))
        drop-shadow(0 0 30px rgba(255, 174, 0, 0.25));

    transition:
        transform 180ms ease,
        filter 180ms ease;
}

.logo::before {
    content: "";

    position: absolute;
    inset: 3px;

    clip-path: inherit;

    background:
        linear-gradient(
            145deg,
            #ffe88a,
            #f7b500
        );

    z-index: 0;
}

.logo::after {
    content: "";

    position: absolute;
    inset: 6px;

    clip-path: inherit;

    background:
        linear-gradient(
            145deg,
            rgba(20, 40, 61, 0.96),
            rgba(8, 16, 27, 0.98)
        );

    box-shadow:
        inset 0 0 24px rgba(72, 169, 255, 0.12);

    z-index: 1;
}

.logo:hover {
    transform: translateY(-3px) scale(1.04);

    filter:
        drop-shadow(0 0 18px rgba(255, 214, 72, 0.85))
        drop-shadow(0 0 40px rgba(255, 174, 0, 0.45));
}

.logo-letter {
    position: relative;
    z-index: 2;

    font-size: 48px;
    font-weight: 800;
    line-height: 1;

    color: var(--accent-light);

    text-shadow:
        0 0 10px rgba(117, 194, 255, 0.65),
        0 0 25px rgba(72, 169, 255, 0.38);
}

.eyebrow {
    margin: 0 0 12px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;

    color: var(--accent-light);
}

.title {
    margin: 0;

    font-size: clamp(46px, 10vw, 68px);
    line-height: 1;
    letter-spacing: -0.055em;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #a9cde8
        );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
}

.description {
    max-width: 390px;
    margin: 22px auto 0;

    font-size: 16px;
    line-height: 1.65;

    color: var(--text-secondary);
}

.actions {
    margin-top: 34px;

    display: grid;
    gap: 12px;
}

.button {
    min-height: 54px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #04111d;

    background:
        linear-gradient(
            135deg,
            var(--accent-light),
            var(--accent)
        );

    box-shadow:
        0 14px 32px rgba(40, 147, 235, 0.24);
}

.button-primary:hover {
    box-shadow:
        0 18px 40px rgba(40, 147, 235, 0.34);
}

.button-secondary {
    color: var(--text-primary);

    background: var(--button-dark);

    border: 1px solid rgba(122, 174, 218, 0.16);
}

.button-secondary:hover {
    border-color: rgba(104, 187, 255, 0.38);
    background: #192231;
}

.features {
    margin-top: 31px;
    padding-top: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;

    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.feature {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 12px;
    color: var(--text-muted);
}

.feature-icon {
    font-size: 8px;
    color: var(--accent);

    text-shadow:
        0 0 9px rgba(72, 169, 255, 0.8);
}

.footer {
    margin-top: 26px;

    font-size: 11px;
    letter-spacing: 0.04em;

    color: #4d5868;
}

.footer-separator {
    margin: 0 7px;
}

@media (max-width: 560px) {
    .welcome-page {
        padding: 18px 14px;
    }

    .welcome-card {
        padding: 38px 22px 25px;
        border-radius: 22px;
    }

    .logo {
    width: 80px;
    height: 90px;
}

.logo-letter {
    position: relative;
    z-index: 2;

    font-size: 48px;
    font-weight: 900;

    color: #7ec8ff;

    text-shadow:
        0 0 8px rgba(126, 200, 255, .9),
        0 0 20px rgba(72,169,255,.6);
}

    .logo-letter {
        font-size: 39px;
    }

    .description {
        font-size: 15px;
    }

    .features {
        gap: 13px;
    }
}
.home-logout-form {
    margin: 0;
}

.home-logout-form .button {
    width: 100%;
    border: 1px solid rgba(122, 174, 218, 0.16);
    cursor: pointer;
    font-family: inherit;
}

.public-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-profile-link {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #dbe9f7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.public-profile-avatar {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(91, 180, 255, 0.32);
    border-radius: 50%;

    color: #75c2ff;
    background: rgba(72, 169, 255, 0.1);

    box-shadow: 0 0 18px rgba(72, 169, 255, 0.1);
}

.public-logout-form {
    margin: 0;
}

.public-logout-button {
    min-height: 38px;
    padding: 0 14px;

    cursor: pointer;

    border: 1px solid rgba(122, 174, 218, 0.18);
    border-radius: 10px;

    color: #c4cfdd;
    background: rgba(19, 27, 39, 0.82);

    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.public-logout-button:hover {
    border-color: rgba(104, 187, 255, 0.4);
    color: #ffffff;
    background: #192231;
}

@media (max-width: 700px) {
    .public-user-actions {
        gap: 7px;
    }

    .public-profile-link > span:last-child {
        display: none;
    }

    .public-logout-button {
        padding: 0 10px;
    }
}