:root {
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --accent-green: #238636;
    --accent-hover: #2ea043;
    --border-color: #30363d;
    --input-bg: #010409;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.auth-box {
    width: 100%;
    max-width: 350px;
}

h1, h2, h3 {
    margin-bottom: 16px;
    color: #ffffff;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.btn {
    display: inline-block;
    background-color: var(--accent-green);
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    width: 100%;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.btn:disabled {
    background-color: #21262d;
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-color);
}

.btn-small {
    width: auto;
}

.flash-messages {
    list-style: none;
    margin-bottom: 20px;
}

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-error, .alert-message {
    background-color: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.4);
    color: #ff7b72;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.divider { border-top: 1px solid var(--border-color); margin: 20px 0; }
