/* Branded auth pages — login, register, password reset */
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--cream, #FFF9F0);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 100vh;
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-shell__brand { min-height: 220px; }
}

.auth-shell__brand {
    position: relative;
    background: linear-gradient(145deg, var(--navy-dark, #0B2545) 0%, var(--navy, #1A2E4E) 55%, #2d4a6f 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.auth-shell__brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 37, 69, 0.92) 0%, rgba(26, 46, 78, 0.75) 100%);
}

.auth-shell__brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 6vw, 56px);
    color: #fff;
}

.auth-shell__logo img {
    max-height: 72px;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.auth-shell__logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.auth-shell__tagline {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 14px;
    border-radius: var(--radius-pill, 999px);
    background: rgba(249, 168, 37, 0.2);
    border: 1px solid rgba(249, 168, 37, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-shell__welcome {
    margin: 16px 0 24px;
    max-width: 28rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.auth-shell__home-link {
    color: var(--primary, #F9A825);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-shell__home-link:hover { text-decoration: underline; }

.auth-shell__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 48px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white, #fff);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow-soft, 0 8px 32px rgba(26, 46, 78, 0.12));
    padding: clamp(28px, 5vw, 40px);
    border-top: 4px solid var(--primary, #F9A825);
}

.auth-card__title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy, #1A2E4E);
    margin: 0 0 6px;
}

.auth-card__subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #636E72);
    margin: 0 0 28px;
    line-height: 1.55;
}

.auth-form .form-group { margin-bottom: 18px; }

.auth-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy, #1A2E4E);
    margin-bottom: 6px;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dde1e7;
    border-radius: var(--radius-md, 12px);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--cream, #FFF9F0);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary, #F9A825);
    box-shadow: 0 0 0 3px var(--primary-light, rgba(249, 168, 37, 0.22));
    background: #fff;
}

.auth-form .error {
    display: block;
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 4px;
}

.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--realblack, #2D3436);
    cursor: pointer;
}

.auth-form__remember input {
    accent-color: var(--primary, #F9A825);
    width: 16px;
    height: 16px;
}

.auth-form__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-soft, #2A4572);
    text-decoration: none;
}

.auth-form__link:hover { color: var(--primary-dark, #E09410); }

.auth-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-pill, 999px);
    background: linear-gradient(135deg, var(--primary, #F9A825) 0%, var(--primary-dark, #E09410) 100%);
    color: var(--navy, #1A2E4E);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(249, 168, 37, 0.35);
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 168, 37, 0.45);
}

.auth-btn:disabled { opacity: 0.7; cursor: wait; }

.auth-card__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-dark, #F5EDE0);
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted, #636E72);
}

.auth-card__footer a {
    color: var(--navy, #1A2E4E);
    font-weight: 600;
    text-decoration: none;
}

.auth-card__footer a:hover { color: var(--primary-dark, #E09410); }

.auth-alert {
    padding: 12px 14px;
    border-radius: var(--radius-md, 12px);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.auth-alert--error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
