/* Stylesheet for Login Page - SI-TPP (Full Screen 2-Split Layout) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body.login-page {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #0f172a;
    overflow-x: hidden;
}

/* Wrapper Split Full layar */
.login-wrapper {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    background: #ffffff;
}

/* ==========================================
   SISI KIRI: IDENTITAS PROJECT (50% Full Screen)
   ========================================== */
.login-identity-section {
    flex: 1;
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(79, 70, 229, 0.85) 50%, rgba(15, 23, 42, 0.95) 100%), url('../images/bg_setda.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Decor Ambient Lighting Effects */
.login-identity-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 70%);
    pointer-events: none;
}

.login-identity-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}

.identity-content {
    position: relative;
    z-index: 2;
    margin: auto 0;
    max-width: 540px;
}

.logo-group {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 22px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
}

.badge-instansi {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(99, 102, 241, 0.12); /* Soft transparent indigo */
    border: 1px solid rgba(129, 140, 248, 0.35); /* Indigo border */
    color: #a5b4fc; /* Bright indigo text */
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.brand-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px 0;
    letter-spacing: 1.5px;
}

.brand-sim {
    color: #ffffff;
}

.brand-patik {
    color: #ffffff;
}

.brand-subtitle {
    color: rgba(226, 232, 240, 0.92);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.07);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.feature-text h4 {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
}

.feature-text p {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(203, 213, 225, 0.88);
    line-height: 1.4;
}

.identity-footer {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.65);
    margin-top: 40px;
}

/* ==========================================
   SISI KANAN: FORM LOGIN (50% Full Screen)
   ========================================== */
.login-form-section {
    flex: 1;
    width: 50%;
    min-height: 100vh;
    background: #ffffff;
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo Sigi Pakaroso di Pojok Kanan Atas */
.top-right-logo {
    position: absolute;
    top: 25px;
    right: 35px;
    z-index: 10;
}

.logo-pakaroso {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-pakaroso:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.18));
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.form-header p {
    color: #64748b;
    font-size: 0.98rem;
    margin: 0;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
    color: #334155;
    font-size: 0.92rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 5;
}

.form-control,
.input-icon-wrapper input.form-control,
.input-icon-wrapper input[type="text"],
.input-icon-wrapper input[type="password"] {
    width: 100%;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 52px !important;
    padding-right: 18px !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.25s ease;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
}

.password-wrapper input.form-control,
.password-wrapper input[type="password"] {
    padding-right: 50px !important;
    padding-left: 52px !important;
}

.form-control::placeholder {
    color: #cbd5e1;
    opacity: 1;
}

.form-control:focus {
    border-color: #4f46e5;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-control:focus + .input-icon,
.input-icon-wrapper:focus-within .input-icon {
    color: #4f46e5;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.15s ease;
}

.toggle-password:hover {
    color: #4f46e5;
    transform: scale(1.1);
}

.cf-turnstile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
    min-height: 65px;
}

.btn-login {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.btn-login:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
    transform: translateY(-2px);
}

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

.error-msg {
    background-color: #fef2f2;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    border-left: 4px solid #ef4444;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-msg i {
    font-size: 1.2rem;
    color: #ef4444;
}

.login-footer-mobile {
    display: none;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Watermark Credit (Fixed di kanan bawah) */
.credit {
    position: fixed;
    bottom: 20px;
    right: 25px;
    font-size: 0.85rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.credit a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit a:hover {
    color: #4f46e5;
}

/* ==========================================
   RESPONSIVE LAYOUT (TABLET & MOBILE)
   ========================================== */
@media (max-width: 1024px) {
    .login-identity-section {
        padding: 50px 40px;
    }

    .login-form-section {
        padding: 50px 40px;
    }

    .brand-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 900px) {
    html, body.login-page {
        background-color: #ffffff;
    }

    .login-wrapper {
        flex-direction: column;
        min-height: 100vh;
        width: 100%;
        background: #ffffff;
    }

    .login-identity-section {
        width: 100%;
        min-height: auto;
        padding: 45px 30px 35px;
        text-align: center;
        align-items: center;
    }

    .identity-content {
        margin: 0;
        max-width: 100%;
    }

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

    .brand-title {
        font-size: 2.2rem;
    }

    .brand-subtitle {
        margin-bottom: 25px;
        font-size: 0.95rem;
    }

    .feature-list {
        display: none; /* Sembunyikan bullet points di layar HP agar kompak */
    }

    .identity-footer {
        display: none;
    }

    .login-form-section {
        width: 100%;
        flex: 1;
        background: #ffffff;
        padding: 25px 25px 50px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: relative;
    }

    .top-right-logo {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
    }

    .logo-pakaroso {
        height: 48px;
    }

    .form-container {
        margin-top: 10px;
        width: 100%;
        max-width: 100%;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .login-footer-mobile {
        display: block;
        color: #64748b;
        margin-top: 25px;
        text-align: center;
    }

    .credit {
        position: fixed;
        bottom: 12px;
        right: 15px;
        top: auto;
        left: auto;
        margin-top: 0;
        text-align: right;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.78rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 100;
    }

    .credit a {
        color: #475569;
    }
}

@media (max-width: 480px) {
    .login-identity-section {
        padding: 30px 18px 22px;
    }

    .logo-img {
        height: 44px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .login-form-section {
        padding: 20px 18px 45px;
    }

    .top-right-logo {
        top: 15px;
        right: 18px;
    }

    .logo-pakaroso {
        height: 42px;
    }

    .form-container {
        margin-top: 5px;
    }

    .credit {
        bottom: 10px;
        right: 12px;
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}
