:root {
    --bg: #0d0e11;
    --text-main: #e6e8ec;
    --text-muted: #8a919e;
    --border: #232730;
    --input-bg: #14171f;
    --button-bg: #e6e8ec;
    --button-text: #0d0e11;
    --error-bg: rgba(239, 68, 68, 0.08);
    --error-border: rgba(239, 68, 68, 0.25);
    --error-text: #f87171;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

header {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
}

main {
    margin: 4rem 0;
}

h1 {
    font-size: 1.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

.description p {
    margin-bottom: 1rem;
}

.auth-section {
    max-width: 320px;
    margin-bottom: 3.5rem;
}

.auth-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

input:focus {
    border-color: #525866;
}

button {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--button-bg);
    border: none;
    border-radius: 4px;
    color: var(--button-text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

.auth-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
    font-size: 0.85rem;
    border-radius: 4px;
    line-height: 1.4;
}

.links {
    display: flex;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #ffffff;
}

footer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    body { padding: 2.5rem 1.5rem; }
    main { margin: 3rem 0; }
    .links { flex-direction: column; gap: 1rem; }
}
