/* ---------- login / register / password pages ---------- */
.auth-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-art {
    position: relative;
    background: #13241b url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1400&q=70") center / cover no-repeat;
    color: #fff;
}
.auth-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10, 24, 15, 0.9) 0%, rgba(20, 60, 30, 0.72) 55%, rgba(10, 24, 15, 0.55) 100%);
}
.auth-art-in {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    padding: 40px clamp(28px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}
.auth-art-logo img {
    height: 44px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: 10px;
}
.auth-art h2 {
    color: #fff;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 24px;
}
.auth-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15.5px;
}
.auth-perks i {
    color: #9be3a2;
    margin-inline-end: 8px;
}
.auth-art small {
    opacity: 0.7;
}
.auth-main {
    display: flex;
    flex-direction: column;
    padding: 24px clamp(16px, 4vw, 56px);
    box-sizing: border-box;
}
.auth-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.auth-top a {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.auth-top a:hover {
    color: var(--accent);
}
[dir="rtl"] .auth-back i {
    display: inline-block;
    transform: scaleX(-1);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 32px 0;
}
.auth-card-logo {
    display: none;
}
.auth-card-logo img {
    height: 40px;
    width: auto;
}
.auth-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 6px;
}
.auth-sub {
    color: var(--ink-2);
    margin: 0 0 26px;
}
.auth-alert {
    background: var(--surface-2);
    border-inline-start: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.auth-card .form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--ink);
}
.auth-field {
    position: relative;
}
.auth-field > i {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    transform: translateY(-50%);
    color: var(--ink-2);
    pointer-events: none;
}
.auth-card .form-control {
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    box-shadow: none;
}
.auth-field .form-control {
    padding-inline-start: 42px;
}
.auth-field.has-eye .form-control {
    padding-inline-end: 46px;
}
.auth-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 122, 34, 0.15);
}
.auth-card .form-control.is-invalid {
    border-color: var(--danger);
    background-image: none;
}
.auth-card .invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: 13px;
}
.auth-eye {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-2);
    display: grid;
    place-items: center;
}
.auth-eye:hover {
    color: var(--accent);
}
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}
.auth-row .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.auth-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-link:hover {
    text-decoration: underline;
}
.auth-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: filter 0.2s ease;
}
.auth-submit:hover {
    filter: brightness(1.08);
}
.auth-switch {
    text-align: center;
    margin: 22px 0 0;
    color: var(--ink-2);
    font-size: 14.5px;
}
/* older pages (forgot / reset password) still use Bootstrap buttons */
.auth-card .btn-brand {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 700;
}
.auth-card .card-title {
    font-size: 1.6rem;
    font-weight: 800;
}
.auth-card a:not(.auth-card-logo):not(.btn) {
    color: var(--accent);
}
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .auth-art {
        display: none;
    }
    .auth-card-logo {
        display: inline-block;
        margin-bottom: 22px;
    }
    .auth-card {
        padding-top: 24px;
    }
}
