
:root {
    --background: #080d19;
    --surface: #111827;
    --primary: #6d5dfc;
    --accent: #a78bfa;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #263247;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(
        ellipse at top,
        #30205e,
        #080d19 65%
    );
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    padding: 40px 20px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    text-decoration: none;
    margin-bottom: 35px;
}

.logo span {
    color: var(--accent);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 38px;
    box-shadow: 0 20px 80px #00000040;
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 15px;
}

h1 {
    font-size: 34px;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

input {
    width: 100%;
    background: var(--background);
    border: 1px solid #334155;
    border-radius: 9px;
    padding: 14px;
    color: white;
    font-size: 14px;
    margin-bottom: 20px;
}

input:focus {
    outline: 2px solid var(--accent);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 65px;
}

#toggle-password {
    position: absolute;
    right: 12px;
    top: 13px;
    border: none;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
}

.primary {
    width: 100%;
    border: none;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.primary:hover {
    background: #8476ff;
    box-shadow: 0 5px 25px #6d5dfc35;
}

.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 25px 0;
}

.switch {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.switch a:hover {
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    margin-top: 25px;
}

.notice {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
}

#message:not(:empty) {
    margin-top: 18px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

#message.error {
    background: #451a1a;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

#message.success {
    background: #052e24;
    color: #6ee7b7;
    border: 1px solid #065f46;
}

footer {
    margin-top: 35px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 500px) {
    .auth-card {
        padding: 25px;
    }

    h1 {
        font-size: 28px;
    }
}
