* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.auth-card p.subtitle {
    margin: 0 0 28px;
    color: #94a3b8;
    font-size: 14px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #cbd5e1;
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
}

.field input:focus {
    outline: none;
    border-color: #3b82f6;
}

button.primary {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #3b82f6;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

button.primary:hover {
    background: #2563eb;
}

button.primary:disabled {
    background: #475569;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.form-actions button.primary {
    flex: 1;
}

a.button.secondary {
    flex: 1;
    padding: 11px;
    border: 1px solid #334155;
    border-radius: 6px;
    background: transparent;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

a.button.secondary:hover {
    background: #334155;
}

.error-message {
    background: #7f1d1d;
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
}

.tab-nav {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid #334155;
}

.tab {
    padding: 8px 4px;
    margin-right: 24px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: #cbd5e1;
}

.tab.active {
    color: #e2e8f0;
    border-bottom-color: #3b82f6;
}

.success-message {
    background: #14532d;
    color: #bbf7d0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
}

.switch-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.switch-link a {
    color: #60a5fa;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}
