.auth-page {
    min-height: 100vh;

    position: relative;

    display: flex;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(109, 93, 252, 0.18),
            transparent 45%
        ),
        var(--background);
}

.auth-page::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        transparent 80%
    );
}

.auth-logo {
    position: absolute;

    top: 32px;
    left: 40px;

    display: flex;
    align-items: center;

    gap: 10px;

    font-weight: 700;

    z-index: 10;
}

.auth-container {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 100px 20px 60px;
}

.auth-card {
    width: 100%;

    max-width: 440px;

    padding: 38px;

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.008)
        ),
        var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}

.auth-heading {
    margin-bottom: 32px;
}

.auth-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--primary-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.17em;
}

.auth-heading h1 {
    font-size: 31px;

    letter-spacing: -0.04em;

    line-height: 1.1;
}

.auth-heading p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 14px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 18px;
}

.form-group label {
    color: #d8dbe2;

    font-size: 12px;

    font-weight: 500;
}

.form-group input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    color: var(--text);

    background: #090b10;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.form-group input::placeholder {
    color: #555b68;
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.form-group input:focus {
    border-color: var(--primary);

    background: #0b0d13;

    box-shadow:
        0 0 0 3px rgba(109, 93, 252, 0.1);
}

.auth-button {
    width: 100%;

    height: 48px;

    margin-top: 8px;

    border: 0;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s,
        opacity 0.2s;
}

.auth-button:hover {
    background: var(--primary-light);

    transform: translateY(-1px);
}

.auth-button:disabled {
    cursor: not-allowed;

    opacity: 0.55;

    transform: none;
}

.auth-divider {
    display: flex;

    align-items: center;

    gap: 14px;

    margin: 28px 0 22px;
}

.auth-divider span {
    height: 1px;

    flex: 1;

    background: var(--border);
}

.auth-divider p {
    color: #5f6571;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.15em;
}

.auth-switch {
    color: var(--muted);

    text-align: center;

    font-size: 13px;
}

.auth-switch a {
    color: var(--primary-light);

    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-terms {
    margin-top: 17px;

    color: #656b77;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}

.auth-message {
    margin-bottom: 22px;

    padding: 12px 14px;

    border-radius: 9px;

    font-size: 12px;

    line-height: 1.5;
}

.auth-message.error {
    color: #ffaaaa;

    background: rgba(255, 75, 75, 0.08);

    border: 1px solid rgba(255, 75, 75, 0.16);
}

.auth-message.success {
    color: #aaf0c5;

    background: rgba(55, 200, 120, 0.08);

    border: 1px solid rgba(55, 200, 120, 0.16);
}

@media (max-width: 600px) {

    .auth-logo {
        top: 22px;
        left: 22px;
    }

    .auth-card {
        padding: 28px 22px;

        border-radius: 16px;
    }

    .auth-container {
        align-items: flex-start;

        padding-top: 100px;
    }
}

.auth-discord-button {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    box-sizing: border-box;

    padding: 0 18px;

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    background: #5865f2;
    color: #ffffff;

    font: inherit;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.auth-discord-button:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.auth-discord-button:active {
    transform: translateY(0);
}

.auth-discord-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
}

.auth-discord-button:focus-visible {
    outline: 2px solid rgba(88, 101, 242, 0.7);
    outline-offset: 3px;
}