*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #0d1117;
    --surface:  #161b22;
    --border:   #30363d;
    --accent:   #10b981;
    --danger:   #ef4444;
    --success:  #10b981;
    --text:     #e6edf3;
    --muted:    #8b949e;
    --radius:   12px;
}

body.auth-body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(16,185,129,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(59,130,246,0.05) 0%, transparent 50%);
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.brand-icon { font-size: 1.8rem; }

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem 2rem;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 1.8rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-group label small {
    color: var(--muted);
    font-weight: 400;
}

.form-group input {
    width: 100%;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.input-eye {
    position: relative;
}

.input-eye input { padding-right: 2.8rem; }

.eye-btn {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.eye-btn:hover { opacity: 1; }

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover  { background: #059669; }
.btn-primary:active { transform: scale(0.98); }

.alert {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-success a { color: var(--accent); }

.auth-link {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.83rem;
    color: var(--muted);
}

.auth-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover { text-decoration: underline; }