/* ============================================================================== */
/* 🕶️ ONLINE JAYA WMS — DARK MAFIA STRATEGY ROOM THEME (LOGIN PAGE)              */
/* Concept: Dark Mafia Strategy Room — Elegant, Calm & Powerful                   */
/* Strictly Inanimate: Marble, Dark Walnut, Strategy Map, Chess, Banker's Glow   */
/* High-Contrast, Premium Visual Depth, Mobile-Optimized (iOS Safari Safe)        */
/* ============================================================================== */

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

html, body {
    height: 100%;
    background-color: #030508;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f1f5f9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── 1. Strategy Room Environment (Atmosphere, Textures & Lighting) ── */
.strategy-room-bg {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    background-color: #030508;
    /* Layered Atmosphere: Banker's Lamp Spotlight (Warm Amber), Crimson Ambient, Dark Mahogany Table */
    background-image: 
        /* Classic Banker's Lamp Warm Golden Spotlight (Top Left) */
        radial-gradient(circle at 16% 12%, rgba(212, 175, 55, 0.16) 0%, rgba(180, 130, 20, 0.06) 35%, transparent 65%),
        /* Velvet Crimson Strategic Aura (Bottom Right) */
        radial-gradient(circle at 84% 88%, rgba(225, 29, 72, 0.16) 0%, rgba(153, 27, 27, 0.08) 40%, transparent 70%),
        /* Dark Walnut & Marble Table Reflection at bottom */
        linear-gradient(to top, rgba(12, 10, 8, 0.85) 0%, rgba(5, 7, 11, 0.4) 30%, transparent 60%),
        /* Deep Room Vignette */
        radial-gradient(ellipse at 50% 50%, rgba(15, 20, 30, 0.75) 0%, rgba(3, 5, 8, 0.98) 100%);
    overflow: hidden;
}

/* Strategic Tactical Grid Pattern */
.strategy-room-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    background-position: center center;
    mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
    pointer-events: none;
    z-index: 1;
}

/* Cinematic Edge Shadowing */
.strategy-room-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(2, 3, 5, 0.9) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── 2. Decorative Background Elements (Strategic Map, Compass, Chess, Coordinates) ── */
.strategic-ambient-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Tactical World Strategy Map */
.decor-world-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1050px;
    max-width: 95vw;
    height: auto;
    opacity: 0.12;
    color: #cbd5e1;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.15));
}

/* Strategic Compass Rose */
.decor-compass {
    position: absolute;
    top: 5%;
    right: 6%;
    width: 260px;
    height: 260px;
    opacity: 0.18;
    color: #d4af37;
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.25));
    animation: slowRotate 240s linear infinite;
}

/* Tactical Chess Pieces (King & Knight & Rook on Strategy Board) */
.decor-chess-left {
    position: absolute;
    bottom: 4%;
    left: 5%;
    width: 220px;
    height: 220px;
    opacity: 0.14;
    color: #e11d48;
    filter: drop-shadow(0 0 24px rgba(225, 29, 72, 0.3));
}

.decor-chess-right {
    position: absolute;
    bottom: 6%;
    right: 5%;
    width: 190px;
    height: 190px;
    opacity: 0.13;
    color: #d4af37;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.25));
}

/* Tactical Strategy Coordinates Header/Footer Badges */
.tactical-coordinate-badge {
    position: absolute;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    user-select: none;
    z-index: 3;
}
.coord-tl { top: 20px; left: 24px; }
.coord-br { bottom: 20px; right: 24px; text-align: right; }

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── 3. The Strategy Console Card (Obsidian Marble Dossier) ── */
.strategy-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(168deg, rgba(16, 22, 32, 0.95) 0%, rgba(9, 13, 20, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 28px;
    padding: 38px 34px 32px;
    box-shadow: 
        0 35px 85px -15px rgba(0, 0, 0, 0.9),
        0 0 40px -5px rgba(225, 29, 72, 0.16),
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        inset 0 0 24px rgba(212, 175, 55, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gold Corner Metallic Brackets (Fine Executive Detailing) */
.corner-trim {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    border-color: #d4af37;
    opacity: 0.85;
}
.corner-tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 6px; }
.corner-tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 6px; }
.corner-bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 6px; }
.corner-br { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 6px; }

/* ── 4. Brand Identity & Monogram Emblem (OJ Chrome & Ruby Crimson) ── */
.emblem-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.oj-emblem {
    width: 86px;
    height: 86px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 24px rgba(225, 29, 72, 0.4)) drop-shadow(0 2px 10px rgba(212, 175, 55, 0.35));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oj-emblem:hover {
    transform: scale(1.06);
}

.brand-title {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #e2e8f0 55%, #d4af37 85%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

/* Slogan & Tagline Layout */
.slogan-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.35);
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 0.3px;
    margin-bottom: 9px;
    box-shadow: 0 2px 12px rgba(225, 29, 72, 0.18);
}

.tagline-box {
    text-align: center;
    margin-bottom: 22px;
}

.tagline-text {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tagline-highlight {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.tagline-action {
    color: #f43f5e;
    text-shadow: 0 0 12px rgba(244, 63, 94, 0.45);
}

/* Gold Strategic Divider Line */
.gold-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 50%, transparent 100%);
    margin: 12px 0 20px;
}

/* ── 5. Form Controls (Modern Executive Inputs) ── */
.form-field {
    position: relative;
    margin-bottom: 18px;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 7px;
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}

.field-input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    background: rgba(9, 13, 20, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-family: inherit;
    font-size: 14.5px;
    color: #f8fafc;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Mandatory: iOS Safari 16px font-size to prevent unwanted auto-zooming */
@media (max-width: 640px) {
    .field-input {
        font-size: 16px;
    }
}

.field-input:focus {
    border-color: #d4af37;
    background: rgba(13, 18, 28, 0.98);
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.22),
        0 4px 18px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.field-input:focus + .field-icon,
.field-input-wrap:focus-within .field-icon {
    color: #fbbf24;
}

.field-input::placeholder {
    color: #475569;
    font-weight: 500;
}

.eye-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.eye-toggle-btn:hover {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.06);
}

/* ── 6. Tombol Masuk Mafia Radiant Crimson ── */
.btn-login-crimson {
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 45%, #991b1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 
        0 6px 28px rgba(225, 29, 72, 0.48),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login-crimson::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: left 0.6s ease;
}

.btn-login-crimson:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 34px rgba(225, 29, 72, 0.65),
        0 4px 14px rgba(212, 175, 55, 0.22),
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 45%, #be123c 100%);
}

.btn-login-crimson:hover::before {
    left: 100%;
}

.btn-login-crimson:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4);
}

.btn-login-crimson:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Notification Alert */
.strategy-error-alert {
    background: rgba(153, 27, 27, 0.35);
    border: 1px solid rgba(239, 68, 68, 0.55);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13px;
    color: #fecaca;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.2);
    animation: shake 0.35s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* ── 7. Strategic Mission Pillars (Books & Strategy Principles) ── */
.strategy-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.strategy-pillars-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.pillar-tab {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.strategy-footer-quote {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.strategy-footer-quote span.gold-bullet {
    color: #d4af37;
    font-size: 13px;
}

/* ── 8. Mobile Responsiveness & iPhone Safe Areas ── */
@media (max-width: 480px) {
    .strategy-room-bg {
        padding: 16px 12px;
        align-items: flex-start;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .strategy-card {
        padding: 28px 18px 24px;
        border-radius: 22px;
        margin-top: auto;
        margin-bottom: auto;
    }

    .brand-title {
        font-size: 23px;
        letter-spacing: 2px;
    }

    .tagline-text {
        font-size: 11.5px;
    }

    .slogan-pill {
        font-size: 10.5px;
        padding: 3px 10px;
    }

    .oj-emblem {
        width: 74px;
        height: 74px;
    }

    .decor-compass, .decor-chess-left, .decor-chess-right, .tactical-coordinate-badge {
        display: none; /* Mencegah clutter di layar HP */
    }
}

[x-cloak] {
    display: none !important;
}
