:root {
    --bg: #080a0d;
    --card: #10151c;

    --text: #f5f7fa;
    --muted: #969da8;

    --border: #202833;

    --accent: #0ea5a4;
    --accent-light: #35e0dc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    font-family: "Inter", sans-serif;

    background: var(--bg);
    color: var(--text);

    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}


/* PAGE */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -320px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(14, 165, 164, 0.18);

    filter: blur(130px);

    border-radius: 50%;
}

.auth-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 470px;

    text-align: center;
}


/* LOGO */

.logo {
    display: inline-block;

    margin-bottom: 32px;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-light);
}


/* CARD */

.auth-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 40px;

    text-align: left;
}

.badge {
    display: inline-block;

    color: var(--accent-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 18px;
}

h1 {
    font-size: 32px;

    line-height: 1.15;

    letter-spacing: -1.3px;

    margin-bottom: 10px;
}

.intro {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;

    margin-bottom: 30px;
}


/* FORM */

.form-group {
    margin-bottom: 19px;
}

label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;
}

input {
    width: 100%;

    padding: 14px 15px;

    background: #0b0f14;

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:hover {
    border-color: #34404d;
}

input:focus {
    border-color: var(--accent);

    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.08);
}

input::placeholder {
    color: #59616c;
}


/* BUTTON */

.btn {
    width: 100%;

    border: 0;

    margin-top: 7px;

    padding: 15px 20px;

    border-radius: 8px;

    background: var(--accent);
    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 9px;

    transition:
        background 0.2s,
        transform 0.2s;
}

.btn:hover {
    background: #12b8b7;

    transform: translateY(-1px);
}


/* ERROR */

.alert {
    padding: 12px 14px;

    border-radius: 7px;

    margin-bottom: 22px;

    font-size: 13px;
    line-height: 1.5;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);

    border: 1px solid rgba(239, 68, 68, 0.25);

    color: #fca5a5;
}


/* BENEFITS */

.benefits {
    display: flex;
    justify-content: center;

    gap: 18px;

    margin-top: 22px;

    color: var(--muted);

    font-size: 11px;
}


/* LOGIN */

.login {
    margin-top: 27px;

    padding-top: 25px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}

.login a {
    color: var(--accent-light);

    font-weight: 600;
}

.login a:hover {
    text-decoration: underline;
}


/* BACK */

.back {
    display: inline-block;

    margin-top: 24px;

    color: var(--muted);

    font-size: 12px;

    transition: color 0.2s;
}

.back:hover {
    color: var(--text);
}


/* MOBILE */

@media (max-width: 520px) {

    .auth-page {
        padding: 30px 15px;
    }

    .auth-card {
        padding: 30px 22px;
    }

    h1 {
        font-size: 28px;
    }

    .benefits {
        flex-direction: column;

        gap: 5px;

        text-align: center;
    }

}