/* =========================================================================
   E-PRESENSI - Auth CSS (halaman login)
   Desain panel kiri-biru (form) + kanan hitam-putih (testimoni/ilustrasi).
   ========================================================================= */

:root {
    --primary-green: #1F4B33;
    --bg-outer: #0F2016;
    --bg-left: #F6F5ED;
    --bg-right: #FFFFFF;
    --text-dark: #111827;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --orange-quote: #F97316;
    --input-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Halaman login: latar luar gelap, kartu di tengah */
body.login-body {
    background-color: var(--bg-outer);
    background-image: radial-gradient(circle at top right, #1a3325 0%, #0F2016 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    background: var(--bg-left);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* --- LEFT PANEL --- */
.left-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 50px;
    text-decoration: none;
}

.logo .logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.form-container {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    padding-bottom: 40px;
}

h1 {
    font-size: 28px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-light);
    text-align: center;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin: 18px 0 4px;
}

.login-alert--error {
    background: #fef3f2;
    color: #b91c1c;
    border: 1px solid #fee4e2;
}

.login-alert--success {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #d1fadf;
}

.input-group {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

label.input-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

label.input-label span {
    color: var(--primary-green);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 20px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(31, 75, 51, 0.1);
}

.input-wrapper i {
    color: #9CA3AF;
    font-size: 14px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 14px 12px;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    min-width: 0;
}

.input-wrapper input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    margin-bottom: 18px;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #163625;
}

.submit-btn:active {
    transform: scale(0.98);
}

.signup-text {
    text-align: center;
    font-size: 12px;
    margin-top: 25px;
    color: var(--text-light);
    font-weight: 500;
}

.signup-text a {
    color: var(--primary-green);
    text-decoration: underline;
    font-weight: 600;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.signup-text a:hover {
    text-decoration-color: var(--primary-green);
}

/* --- RIGHT PANEL --- */
.right-panel {
    flex: 1;
    background-color: var(--bg-right);
    padding: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    border-left: 1px solid var(--border-color);
}

.testimonial-content {
    position: relative;
    z-index: 10;
    max-width: 400px;
}

.quote-icon-start {
    font-size: 60px;
    color: var(--orange-quote);
    line-height: 1;
    font-family: serif;
    margin-bottom: -15px;
    display: block;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 25px;
}

.quote-icon-end {
    font-size: 50px;
    color: var(--orange-quote);
    font-family: serif;
    position: absolute;
    right: 0;
    bottom: -30px;
    line-height: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
}

.author-info span {
    font-size: 12px;
    color: var(--text-light);
}

.city-illustration {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 100%;
    height: 60%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.city-illustration svg {
    width: 110%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom right;
}

@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .left-panel {
        max-width: 100%;
        padding: 40px 20px;
    }
    .right-panel {
        padding: 40px 20px 200px 20px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .city-illustration {
        height: 250px;
    }
}

/* =========================================================================
   Halaman error (403/404) — gaya kartu sederhana
   ========================================================================= */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-left);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    padding: 20px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
    padding: 40px 36px;
}