/* Auth pages — login / register / admin (2026-06-26)
   Dark theme matching dashboard */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0a0a14; color: #e0e0e0; }
body { background: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a14 50%, #050510 100%); min-height: 100vh; }

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #13131f 0%, #0d0d14 100%);
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo .logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(255,255,255,0.1));
}
.auth-logo h1 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.auth-logo .subtitle {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.auth-info {
    background: #0d1f3a;
    border-left: 3px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 4px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.auth-error {
    background: #2a1010;
    border-left: 3px solid #ef4444;
    padding: 10px 14px;
    border-radius: 4px;
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.auth-success {
    background: #0d2a1a;
    border-left: 3px solid #22c55e;
    padding: 10px 14px;
    border-radius: 4px;
    color: #86efac;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.auth-label {
    display: block;
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 14px 0 6px;
}
.auth-label .hint {
    color: #666;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
    margin-left: 6px;
}

input[type=text], input[type=email], input[type=password], textarea {
    width: 100%;
    background: #050510;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
input::placeholder, textarea::placeholder { color: #555; }

textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.auth-btn-primary {
    width: 100%;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: 0;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
    letter-spacing: 0.3px;
}
.auth-btn-primary:hover {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.auth-btn-primary:active {
    transform: translateY(1px);
}
.auth-btn-primary:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 20px;
}
.auth-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
}
.auth-link:hover { color: #16a34a; text-decoration: underline; }
.auth-link-muted {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}
.auth-link-muted:hover { color: #aaa; }

.auth-copyright {
    margin-top: 24px;
    color: #444;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .auth-logo h1 { font-size: 20px; }
}
