/* =========================
   PAGE
========================= */
.login-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #000000;
    background-color: #000000;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(139, 92, 246, 0.2) 1px, transparent 0),
        radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.18) 1px, transparent 0),
        radial-gradient(circle at 1px 1px, rgba(236, 72, 153, 0.15) 1px, transparent 0),
        radial-gradient(circle at top, #1c1c1c, #000000);
    background-size: 20px 20px, 30px 30px, 25px 25px, 100% 100%;
    background-position: 0 0, 10px 10px, 15px 5px, center;
}

/* =========================
   CONTAINER
========================= */
.login-container {
    width: 100%;
    max-width: 1100px;
}

/* =========================
   CARD
========================= */
.login-split {
    display: flex;
    background: var(--theme-surface);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--theme-border);
    box-shadow:
        0 10px 30px var(--theme-shadow),
        0 20px 60px var(--theme-shadow),
        0 0 60px rgba(37, 99, 235, 0.12);
    min-height: 650px;
}

/* =========================
   LEFT
========================= */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--login-bg);
}

.login-body {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

/* =========================
   LOGO
========================= */
.login-title {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    margin-bottom: 20px;
}

.logo-text {
    margin-top: 10px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 4px;

    color: var(--theme-text);
}

.login-title h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--theme-text);
    opacity: 0;
    animation: loginTextFadeUp 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 1.2s;
}

/* =========================
   FORM
========================= */
.field {
    margin-bottom: 16px;
}

.field input {
    width: 100%;

    height: 54px;

    padding: 0 16px;

    border: 1px solid var(--theme-border);

    border-radius: 14px;

    outline: none;
    background: var(--theme-form-bg);
    color: var(--theme-form-text);
    font-size: 14px;
    transition: 0.2s ease;
}

.field input::placeholder {
    color: var(--theme-placeholder);
    opacity: 1;
}

.field input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.08);
}

/* =========================
   REMEMBER
========================= */
.remember-box {
    margin: 10px 0 24px;
}

.remember-box label {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    color: var(--theme-text);
}

/* =========================
   BUTTON
========================= */
.login-btn {
    width: 100%;

    height: 54px;

    border: none;

    border-radius: 14px;

    background: #111827;
    border: 1px solid var(--theme-border-strong);
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-1px);

    background: #2563eb;
    border-color: #60a5fa;
}

/* =========================
   ERROR
========================= */
.error-box {
    margin-bottom: 20px;

    padding: 14px;

    border-radius: 12px;

    background: #fef2f2;

    color: #dc2626;

    border: 1px solid #fecaca;
}

/* =========================
   RIGHT PANEL (FULL 3D MODEL)
========================= */
.image-panel {
    flex: 1;
    background: var(--login-bg);
    position: relative;
    overflow: hidden;
    display: block;
}

.glb-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    --poster-color: transparent;
    transform: translateY(-60px);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 40px;
    pointer-events: none;
}

/* =========================
   CAPTION (MELAYANG DI BAWAH)
========================= */
.image-caption {
    text-align: center;
    max-width: 440px;
}

.image-caption h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--theme-text);
}

.image-caption p {
    color: var(--theme-text);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 900px) {
    .login-split {
        flex-direction: column;
    }

    .image-panel {
        min-height: 380px;
        position: relative;
    }

    .login-body {
        max-width: 100%;
    }

    .image-overlay {
        padding: 24px;
    }

    .glb-viewer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        outline: none;
        --poster-color: transparent;
        transform: translate(-10px, -60px);
    }
}

@keyframes loginTextFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}