:root {
    --auth-primary: #af2d1a;
    --auth-primary-dark: #8a2214;
    --auth-primary-light: #fbecea;
    --auth-text: #2b2b2b;
    --auth-muted: #6c757d;
    --auth-border: #e5e7eb;
    --auth-bg: #f4f5f7;
    --auth-radius: 12px;
    --auth-shadow: 0 2px 10px rgba(20, 20, 20, 0.06);
}

#content {
    margin-right: 0;
}

/* Bootstrap 4 (loaded on this page) sets a global `a { color }` rule that
   otherwise wins the cascade over the site's own `a { color:inherit }` and
   repaints links inside the shared #banner (e.g. the Log In button). */
#banner a {
    color: inherit;
}

.auth-page {
    background: var(--auth-bg);
    padding: 60px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--auth-text);
    min-height: 60vh;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}
.auth-card-header {
    padding: 32px 32px 12px;
}
.auth-card-header h1 {
    font-weight: 700;
    font-size: 26px;
    color: var(--auth-primary);
    margin-bottom: 6px;
}
.auth-card-header p {
    color: var(--auth-muted);
    font-size: 14px;
    margin-bottom: 0;
}
.auth-card-body {
    padding: 24px 32px 32px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.auth-input {
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    height: auto;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-light);
}

.auth-link {
    color: var(--auth-primary);
    font-size: 13px;
    text-decoration: none;
}
.auth-link:hover {
    text-decoration: underline;
    color: var(--auth-primary);
}

.auth-btn-primary {
    background: linear-gradient(180deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(175, 45, 26, 0.3);
    transition: transform .12s ease, box-shadow .12s ease;
}
.auth-btn-primary:hover, .auth-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(175, 45, 26, 0.38);
}
.auth-btn-primary:disabled {
    opacity: .65;
    transform: none;
}
.auth-btn-outline {
    background: #fff;
    border: 1px solid var(--auth-primary);
    color: var(--auth-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 0;
    border-radius: 8px;
}
.auth-btn-outline:hover {
    background: var(--auth-primary);
    color: #fff;
}
.auth-btn-link {
    background: none;
    border: none;
    color: var(--auth-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 0;
}
.auth-btn-link:hover {
    text-decoration: underline;
    color: var(--auth-primary);
}
.w-48 {
    width: 48%;
}

.auth-section-title {
    font-weight: 700;
    font-size: 22px;
    color: var(--auth-text);
    margin-bottom: 20px;
}

.auth-promo-grid {
    max-width: 440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 576px) {
    .auth-promo-grid {
        grid-template-columns: 1fr;
    }
}
.auth-promo-card {
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 18px 16px;
    text-decoration: none;
    color: var(--auth-text);
    transition: box-shadow .15s ease, border-color .15s ease;
}
.auth-promo-card:hover, .auth-promo-card:focus {
    color: var(--auth-text);
    text-decoration: none;
    border-color: var(--auth-primary);
    box-shadow: 0 6px 18px rgba(20, 20, 20, 0.1);
}
.auth-promo-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--auth-primary);
    margin-bottom: 4px;
}
.auth-promo-desc {
    /*font-size: 13px;*/
    /*color: var(--auth-muted);*/
    font-size: 14px;
    color: black;
    font-weight: bold;
}
.auth-promo-wide {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.auth-alert {
    border-radius: 8px;
    font-size: 13px;
}

#loading {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: none;
    opacity: 0.85;
    background-color: #fff;
    z-index: 99;
    text-align: center;
}
#loading-image {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 100;
}

.error {
    color: var(--auth-primary);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
