/* ===========================================================
   Shared auth theme for AdminLogin.aspx and Registration.aspx
   Save as: /build/css/auth.css  (or wherever your other custom
   css lives) and reference it from both pages.
   =========================================================== */

:root {
    --auth-bg-start: #1f2a54;
    --auth-bg-end: #0d1330;
    --auth-accent: #5b6ee8;
    --auth-accent-hover: #4457d6;
    --auth-card-bg: rgba(255, 255, 255, 0.97);
    --auth-text: #1b1f3b;
    --auth-muted: #6b7280;
    --auth-error: #d64545;
    --auth-radius: 16px;
}

* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(91, 110, 232, 0.35), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(214, 69, 130, 0.25), transparent 45%),
        linear-gradient(135deg, var(--auth-bg-start), var(--auth-bg-end));
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    animation: authFadeUp 0.5s ease-out;
}

.auth-wrapper.auth-wrapper--wide {
    max-width: 760px;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 40px 36px;
    backdrop-filter: blur(6px);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.auth-brand img {
    width: 96px;
    height: auto;
    margin-bottom: 8px;
}

.auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 0 0 4px;
}

.auth-subtitle {
    text-align: center;
    color: var(--auth-muted);
    font-size: 13px;
    margin: 0 0 24px;
}

.auth-message {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--auth-error);
    background: rgba(214, 69, 130, 0.08);
    border: 1px solid rgba(214, 69, 130, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.auth-message:empty { display: none; }

.auth-field {
    position: relative;
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.auth-input,
.auth-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #d7dae3;
    border-radius: 10px;
    background: #f8f9fc;
    color: var(--auth-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 110, 232, 0.15);
}

.auth-input[readonly] {
    background: #eef0f6;
    color: var(--auth-muted);
}

.auth-row {
    display: flex;
    gap: 16px;
}

.auth-row .auth-field { flex: 1; }

.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--auth-text);
    margin-bottom: 20px;
}

.auth-submit {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent), #7c3aed);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-submit:hover {
    background: linear-gradient(135deg, var(--auth-accent-hover), #6d28d9);
    box-shadow: 0 8px 20px rgba(91, 110, 232, 0.35);
    transform: translateY(-1px);
}

.auth-submit:active { transform: translateY(0); }

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
}

.auth-links a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover { text-decoration: underline; }

.auth-footer-note {
    text-align: center;
    font-size: 11px;
    color: var(--auth-muted);
    margin-top: 24px;
}

.auth-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--auth-muted);
    margin: 24px 0 12px;
    padding-top: 12px;
    border-top: 1px solid #eceef3;
}

.auth-section-title:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 600px) {
    .auth-card { padding: 28px 20px; }
    .auth-row { flex-direction: column; gap: 0; }
}
