/* ============================================================
   Auth Layout – Staff Portal
   Matches the registration module dark green-charcoal palette
   ============================================================ */

/* ── Full-page backdrop ── */
.auth-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 15% 25%, rgba(0,230,118,.13) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(0,180,80,.08)  0%, transparent 45%),
        linear-gradient(160deg, #0d1a11 0%, #0a1410 50%, #0b160e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

/* ── Logo ── */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* ── Card ── */
.auth-wrapper .card {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(0,230,118,.13);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
    color: #eaf5ef;
}

.auth-wrapper .card-body {
    color: inherit;
}

/* Headings inside card */
.auth-wrapper .card h5,
.auth-wrapper .card h4 {
    color: #eaf5ef;
    font-weight: 700;
}

.auth-wrapper .card .subtitle {
    color: #7a9e8a;
    font-size: 13.5px;
    margin-bottom: 0;
}

/* ── Form labels ── */
.auth-wrapper .form-label {
    color: #c8e0d2;
    font-weight: 500;
    margin-bottom: 6px;
}

/* ── Inputs ── */
.auth-wrapper .form-control {
    background-color: rgba(0,0,0,.35);
    border-color: rgba(0,230,118,.18);
    color: #e8f5ee;
    border-radius: 8px;
}

.auth-wrapper .form-control:focus {
    background-color: rgba(0,0,0,.40);
    border-color: var(--primary-color);
    color: #f0fff8;
    box-shadow: 0 0 0 3px rgba(0,230,118,.14);
}

.auth-wrapper .form-control::placeholder {
    color: #3d6b4d;
    opacity: 1;
}

/* ── Input-group eye toggle (overrides bg-white in markup) ── */
.auth-wrapper .input-group-text,
.auth-wrapper .input-group .btn-outline-secondary,
.auth-wrapper .input-group [class*="bg-white"] {
    background-color: rgba(0,0,0,.30) !important;
    border-color: rgba(0,230,118,.18);
    color: #5a8a6a;
}

.auth-wrapper .input-group-text:hover,
.auth-wrapper .input-group .btn-outline-secondary:hover {
    background-color: rgba(0,230,118,.08) !important;
    border-color: rgba(0,230,118,.4);
    color: #c8e0d2;
}

.auth-wrapper .input-group:focus-within .form-control,
.auth-wrapper .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* ── Checkboxes ── */
.auth-wrapper .form-check-input {
    background-color: rgba(0,0,0,.4);
    border-color: rgba(0,230,118,.3);
}

.auth-wrapper .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-wrapper .form-check-label {
    color: #a8c8b8;
    font-size: 13px;
}

/* ── Links ── */
.auth-wrapper a:not(.btn) {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity .15s;
}

.auth-wrapper a:not(.btn):hover {
    opacity: .8;
    text-decoration: none;
}

/* ── Divider (language switcher row) ── */
.auth-wrapper .divider {
    position: relative;
    color: #5a8a6a;
    font-size: 13px;
}

.auth-wrapper .divider::before,
.auth-wrapper .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(0,230,118,.12);
}

.auth-wrapper .divider::before { left: 0; }
.auth-wrapper .divider::after  { right: 0; }

/* ── Dropdown ── */
.auth-wrapper .dropdown-menu {
    background: #0f1e14;
    border: 1px solid rgba(0,230,118,.15);
}

.auth-wrapper .dropdown-item {
    color: #a8c8b8;
}

.auth-wrapper .dropdown-item:hover,
.auth-wrapper .dropdown-item:focus {
    background: rgba(0,230,118,.10);
    color: #eaf5ef;
}

/* ── Alert ── */
.auth-wrapper .alert-danger {
    background: rgba(220,53,69,.12);
    border-color: rgba(220,53,69,.3);
    color: #f87171;
    border-radius: 8px;
}

/* ── Text helpers ── */
.auth-wrapper .text-muted {
    color: #5a8a6a !important;
}

.auth-wrapper .text-primary {
    color: var(--primary-color) !important;
}

/* ── OTP inputs ── */
.otp-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-group input {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    background-color: rgba(0,0,0,.35);
    border: 1px solid rgba(0,230,118,.2);
    border-radius: 10px;
    color: #e8f5ee;
    caret-color: var(--primary-color);
    transition: border-color .2s, box-shadow .2s;
}

.otp-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,230,118,.14);
    background-color: rgba(0,0,0,.45);
}

/* ── Layout helpers ── */
.auth-center {
    align-items: center;
}
