/*
 * Shared look for the auth pages (login, register): color system, the
 * full-page background photo treatment, and the white card + icon-input
 * style. Page-specific layout (login's two-column hero panel, register's
 * wide form grid) stays in each view's own <style> block.
 */

:root {
    --auth-green-dark: #0f3d2e;
    --auth-green: #157a4c;
    --auth-gold: #e0a91c;
    --auth-gold-dark: #c48f12;
    --auth-cream: #faf3df;
}

/* AdminLTE's own .register-page rule makes body a centered flex
   container, which shrinks .auth-bg instead of letting it fill the
   viewport edge to edge — force it back to normal block flow. */
body.register-page {
    background-color: #f4f1ea;
    display: block !important;
}

/* Satu gambar latar untuk SELURUH halaman (ditaruh belakangan oleh
   pengguna di assets/dist/img/login-hero.jpg). Scrim putih tipis di
   atasnya supaya teks tetap terbaca apa pun foto yang dipasang. */
.auth-bg {
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)),
        url('../img/login-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-card {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 2.75rem 2.5rem 2.25rem;
    box-shadow: 0 20px 45px rgba(15, 61, 46, .12);
    overflow: hidden;
}

.auth-card-decor-gold,
.auth-card-decor-green {
    position: absolute;
    top: 0;
    right: 0;
    width: 190px;
    height: 150px;
    pointer-events: none;
}

.auth-card-decor-gold {
    background: var(--auth-gold);
    clip-path: polygon(35% 0, 100% 0, 100% 65%);
}

.auth-card-decor-green {
    background: var(--auth-green-dark);
    clip-path: polygon(62% 0, 100% 0, 100% 38%);
}

.auth-card-logo {
    position: relative;
    height: 92px;
    width: auto;
    margin: 0 auto 1rem;
    display: block;
}

.auth-card-title {
    position: relative;
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--auth-green-dark);
    margin-bottom: .15rem;
}

.auth-card-title .text-gold {
    color: var(--auth-gold-dark);
}

.auth-card-org {
    position: relative;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .06em;
    color: #6b7972;
    margin-bottom: .35rem;
}

.auth-card-sub {
    position: relative;
    color: #8a9690;
    font-size: .9rem;
    margin-bottom: 1.75rem;
}

.auth-card form {
    position: relative;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-group .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa6a0;
    z-index: 2;
}

.auth-input-group input.form-control,
.auth-input-group select.form-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e3e0d4;
    background: #fbfaf6;
    padding-left: 2.85rem;
    padding-right: 2.85rem;
}

.auth-input-group input.form-control:focus,
.auth-input-group select.form-control:focus {
    border-color: var(--auth-gold);
    box-shadow: 0 0 0 .2rem rgba(224, 169, 28, .15);
    background: #fff;
}

.auth-input-group input.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
    padding-right: 2.85rem;
}

.auth-input-group .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: #9aa6a0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.btn-auth-login {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(180deg, var(--auth-gold) 0%, var(--auth-gold-dark) 100%);
    color: var(--auth-green-dark);
    font-weight: 800;
    letter-spacing: .02em;
}

.btn-auth-login:hover,
.btn-auth-login:focus {
    color: var(--auth-green-dark);
    filter: brightness(1.03);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #9aa6a0;
    font-size: .8rem;
    margin: 1.1rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: #e9e6da;
}

.btn-auth-register {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e3e0d4;
    background: #f4f2ea;
    color: var(--auth-green-dark);
    font-weight: 700;
}

.btn-auth-register:hover {
    background: #ece8d9;
    color: var(--auth-green-dark);
}

.auth-quote {
    position: relative;
    margin-top: 1.75rem;
    font-style: italic;
    font-size: .82rem;
    color: #6b7972;
    line-height: 1.5;
    text-align: center;
}

.auth-quote strong {
    display: block;
    font-style: normal;
    color: var(--auth-green-dark);
    margin-top: .2rem;
}

.auth-plain-link {
    color: var(--auth-gold-dark);
    font-weight: 600;
}
