* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora", "Segoe UI", sans-serif;
    background: #03050a;
    color: #f3f6ff;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-shell {
    width: min(420px, 100%);
}

.auth-brand {
    text-align: center;
    font-size: 31px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.auth-card {
    border: 1px solid #323744;
    background: #06090f;
    border-radius: 10px;
    padding: 24px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    font-size: 33px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #a3acbe;
    margin: 8px 0 18px;
    font-size: 14px;
}

.alert {
    margin-bottom: 12px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.alert-error {
    background: rgba(255, 82, 116, 0.13);
    border: 1px solid rgba(255, 82, 116, 0.45);
    color: #ffdbe4;
}

.alert-success {
    background: rgba(27, 211, 174, 0.11);
    border: 1px solid rgba(27, 211, 174, 0.45);
    color: #d4fff6;
}

.oauth-buttons {
    display: grid;
    gap: 8px;
}

.ghost-btn {
    width: 100%;
    border: 1px solid #3f4657;
    background: #090d15;
    color: #e8ebf2;
    border-radius: 8px;
    min-height: 42px;
    font-weight: 600;
}

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #80899d;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: #333a49;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    font-size: 13px;
    font-weight: 600;
    color: #d7ddeb;
}

.auth-form input {
    width: 100%;
    border: 1px solid #394152;
    border-radius: 8px;
    min-height: 44px;
    background: #0b0f18;
    color: #f6f8ff;
    padding: 0 12px;
    outline: none;
}

.auth-form input::placeholder {
    color: #6c758a;
}

.auth-form input:focus {
    border-color: #7c8eaf;
    box-shadow: 0 0 0 3px rgba(124, 142, 175, 0.22);
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-muted {
    color: #c3cada;
    text-decoration: none;
    font-size: 12px;
}

.link-muted:hover {
    text-decoration: underline;
}

.primary-btn {
    margin-top: 6px;
    min-height: 46px;
    border: none;
    border-radius: 8px;
    background: #d40856;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.primary-btn:hover {
    filter: brightness(1.05);
}

.switch-link {
    margin: 14px 0 0;
    text-align: center;
    font-size: 14px;
    color: #c5ccdc;
}

.switch-link a {
    color: #ffffff;
    font-weight: 600;
}

.terms {
    margin-top: 16px;
    text-align: center;
    color: #8892a8;
    font-size: 12px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 18px 14px;
    }

    .auth-card h1 {
        font-size: 28px;
    }
}

