/* Login V2 — OPPI GROUP (split card + slideshow) */
:root {
    --primary: #1f7a45;
    --primary-dark: #176338;
    --primary-soft: rgba(31, 122, 69, .12);
    --gold: #c59434;
    --text: #172033;
    --muted: #7b8496;
    --border: #e6e9ef;
    --bg: #f3f7f4;
    --danger: #e74c3c;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.login-v2 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 122, 69, .10), transparent 36%),
        radial-gradient(circle at bottom right, rgba(197, 148, 52, .08), transparent 30%),
        var(--bg);
    color: var(--text);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-card {
    width: 100%;
    max-width: 1080px;
    min-height: 650px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 25px 70px rgba(25, 35, 55, .10),
        0 5px 20px rgba(25, 35, 55, .04);
    display: flex;
}

.image-panel {
    position: relative;
    width: 48%;
    overflow: hidden;
    background: #0f3d24;
}

.slideshow {
    position: absolute;
    inset: 0;
}

.slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.1s ease, transform 8s ease;
    pointer-events: none;
}

.slideshow .slide.is-active {
    opacity: .88;
    transform: scale(1.06);
    z-index: 1;
}

.image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(15, 61, 36, .12) 0%,
        rgba(15, 61, 36, .28) 38%,
        rgba(8, 32, 18, .92) 100%
    );
}

.image-content {
    position: absolute;
    left: 45px;
    right: 45px;
    bottom: 42px;
    z-index: 3;
    color: #fff;
}

.image-content .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(5px);
}

.image-content h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.7px;
}

.image-content p {
    max-width: 430px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.8;
}

.slideshow-dots {
    position: absolute;
    left: 45px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 7px;
}

.slideshow-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}

.slideshow-dots button.is-active {
    background: #fff;
    width: 18px;
    border-radius: 6px;
}

.form-panel {
    width: 52%;
    padding: 65px 75px;
    display: flex;
    align-items: center;
}

.form-container {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 42px;
}

.brand-logo {
    width: auto;
    height: 44px;
    max-width: 220px;
    object-fit: contain;
}

.brand-tagline {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.welcome-text { margin-bottom: 32px; }

.welcome-text h1 {
    margin: 0 0 10px;
    color: #131a2a;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.8px;
}

.welcome-text p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.form-group { margin-bottom: 21px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #30394b;
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper { position: relative; }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a9b8;
    font-size: 15px;
    pointer-events: none;
    width: 16px;
    text-align: center;
}

.login-v2 .form-control {
    width: 100%;
    height: 48px;
    padding: 6px 15px 6px 43px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none !important;
    color: #1f2937;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-v2 .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    padding: 5px;
    color: #929aaa;
    cursor: pointer;
    line-height: 1;
}

.password-toggle:hover { color: var(--primary); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 25px;
}

.remember {
    display: flex;
    align-items: center;
    color: #737c8d;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}

.remember input {
    margin: 0 7px 0 0;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.forgot-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.btn-login {
    width: 100%;
    height: 49px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1px;
    box-shadow: 0 8px 20px rgba(31, 122, 69, .22);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.btn-login:hover,
.btn-login:focus {
    background: var(--primary-dark);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 11px 25px rgba(23, 99, 56, .28);
}

.btn-login:active { transform: translateY(0); }
.btn-login:disabled {
    opacity: .75;
    pointer-events: none;
}

.login-alert {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.login-alert-danger {
    border: 1px solid rgba(231, 76, 60, .25);
    background: rgba(231, 76, 60, .08);
    color: var(--danger);
}

.login-alert-success {
    border: 1px solid rgba(31, 122, 69, .25);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.help-text {
    margin-top: 22px;
    color: #89919f;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.help-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.copyright {
    margin-top: 42px;
    color: #b0b6c1;
    font-size: 10px;
    text-align: center;
}

.btn-login .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-v2-spin .7s linear infinite;
}

@keyframes login-v2-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .login-page { padding: 20px; }
    .login-card { max-width: 850px; min-height: 600px; }
    .image-panel { width: 43%; }
    .form-panel { width: 57%; padding: 50px 45px; }
    .image-content { left: 30px; right: 30px; bottom: 30px; }
    .image-content h2 { font-size: 24px; }
    .slideshow-dots { left: 30px; }
    .brand { margin-bottom: 35px; }
}

@media (max-width: 767px) {
    .login-page { padding: 0; align-items: stretch; }
    .login-card {
        max-width: none;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        display: block;
    }
    .image-panel { width: 100%; height: 250px; }
    .image-content { bottom: 28px; }
    .image-content h2 { font-size: 22px; margin-bottom: 6px; }
    .image-content p { font-size: 11px; }
    .image-content .eyebrow {
        margin-bottom: 8px;
        padding: 5px 9px;
        font-size: 9px;
    }
    .slideshow-dots { left: 30px; bottom: 12px; }
    .form-panel { width: 100%; padding: 40px 30px 30px; }
    .form-container { max-width: 500px; }
    .brand { margin-bottom: 32px; }
    .copyright { margin-top: 35px; }
}

@media (max-width: 420px) {
    .image-panel { height: 215px; }
    .form-panel { padding: 32px 22px 25px; }
    .welcome-text h1 { font-size: 26px; }
    .welcome-text { margin-bottom: 27px; }
    .form-options { margin-bottom: 22px; }
}
