@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --ess-primary: #ea580c;
    --ess-primary-hover: #c2410c;
    --ess-amber: #f59e0b;
    --ess-dark: #0f172a;
    --ess-slate: #334155;
    --ess-muted: #64748b;
    --ess-border: #e2e8f0;
}

body:has(.ess-split-wrapper),
.ess-split-wrapper {
    background: #7c2d12;
}

.ess-split-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================================ */
/* 2-COLUMN SPLIT CONTAINER                                     */
/* ============================================================ */
.ess-split-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* ============================================================ */
/* 1. SISI KIRI: ARTWORK & BRANDING ESS (WARM SUNRISE / AMBER)  */
/* ============================================================ */
.ess-art-column {
    position: relative;
    flex: 1;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(145deg, #7c2d12 0%, #9a3412 30%, #c2410c 65%, #ea580c 100%);
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    box-sizing: border-box;
}

/* Header Kiri: Logo YPAP */
.ess-art-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
}

.ess-art-logo-box {
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.ess-art-logo-box img {
    height: 44px;
    width: auto;
    display: block;
}

.ess-art-logo-text {
    line-height: 1.25;
}

.ess-art-logo-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #7c2d12;
    letter-spacing: -0.3px;
}

.ess-art-logo-text span {
    font-size: 0.76rem;
    color: #475569;
    font-weight: 600;
}

/* Center Content Kiri */
.ess-art-body {
    position: relative;
    z-index: 20;
    max-width: 580px;
    margin: 28px 0;
}

.ess-art-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.ess-art-pill i {
    color: #fed7aa;
}

.ess-art-body h2 {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
    margin-bottom: 14px;
}

.ess-art-body h2 span {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 50%, #fed7aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ess-art-body p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Feature Showcase Cards on Left Column */
.ess-service-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-card-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.18);
}

.service-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.service-text {
    line-height: 1.3;
}

.service-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.service-text span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
}

/* Footer Kiri: Powered by DR.APPS */
.ess-art-footer {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
}

.ess-art-badge-powered {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 7px 16px;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.ess-art-badge-powered img {
    height: 24px;
    width: auto;
    display: block;
}

/* Lapisan Visual Ombak & Cahaya */
.ess-layer-glow {
    position: absolute;
    top: -15%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.35) 0%, rgba(245, 158, 11, 0.18) 45%, transparent 70%);
    filter: blur(80px);
    z-index: 2;
    pointer-events: none;
}

.ess-layer-wave1 {
    position: absolute;
    bottom: -8%;
    left: -10%;
    width: 125%;
    height: 90%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(254, 215, 170, 0.03) 100%);
    clip-path: path("M0,150 C300,550 600,600 950,300 C1200,50 1400,100 1600,150 L1600,800 L0,800 Z");
    z-index: 3;
    pointer-events: none;
}

.ess-layer-wave2 {
    position: absolute;
    bottom: 0%;
    right: -15%;
    width: 135%;
    height: 95%;
    background: linear-gradient(180deg, rgba(254, 240, 138, 0.15) 0%, rgba(124, 45, 18, 0.6) 100%);
    clip-path: path("M0,350 C350,650 650,600 1000,150 C1250,-100 1450,-50 1600,-20 L1600,800 L0,800 Z");
    z-index: 4;
    pointer-events: none;
}

/* ============================================================ */
/* 2. SISI KANAN: PANEL FORM LOGIN                              */
/* ============================================================ */
.ess-form-column {
    position: relative;
    z-index: 10;
    width: 480px;
    min-width: 380px;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    box-sizing: border-box;
}

.ess-form-brand {
    margin-bottom: 26px;
}

.ess-form-brand h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.1;
}

.ess-form-brand h1 span {
    color: #ea580c;
}

.ess-form-brand p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 6px 0 16px;
    font-weight: 500;
}

.ess-form-divider {
    width: 44px;
    height: 4px;
    background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
    border-radius: 9999px;
}

/* Input Fields */
.ess-field-group {
    margin-bottom: 20px;
}

.ess-field-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.ess-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ess-field-wrapper .field-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.ess-field-input {
    width: 100%;
    height: 50px;
    padding: 12px 44px 12px 44px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.94rem;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.ess-field-input:focus {
    background: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.18);
}

.ess-field-wrapper:focus-within .field-icon {
    color: #ea580c;
}

.ess-eye-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s ease;
}

.ess-eye-toggle:hover {
    color: #ea580c;
}

/* reCAPTCHA */
.ess-recaptcha-box {
    margin: 18px 0;
    display: flex;
    justify-content: flex-start;
}

/* Button */
.btn-ess-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-ess-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(234, 88, 12, 0.5);
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

.btn-ess-login:active {
    transform: translateY(0);
}

.btn-ess-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Form Footer Copyright */
.ess-form-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ess-split-wrapper {
        flex-direction: column;
    }
    .ess-art-column {
        min-height: auto;
        padding: 36px 24px;
    }
    .ess-form-column {
        width: 100%;
        min-width: 100%;
        padding: 36px 24px;
        box-shadow: none;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    .ess-service-cards {
        display: none;
    }
}
