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

:root {
    --orange:   #E8650A;
    --amber:    #f59e0b;
    --dark:     #0f172a;
    --dark2:    #1e293b;
    --dark3:    #334155;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    background: #f1f5f9;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ─── KIRI: HERO PANEL ──────────────────────────────── */
.hero-panel {
    display: none;
    width: 58%;
    position: relative;
    background: var(--dark);
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
}

@media (min-width: 1024px) { .hero-panel { display: flex; } }

/* Mesh gradient background */
.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 20%, rgba(232,101,10,0.28) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 80% 80%, rgba(245,158,11,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(14,165,233,0.08) 0%, transparent 70%);
}

/* Grid pattern */
.hero-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-content { position: relative; z-index: 2; width: 100%; max-width: 480px; }

/* Floating blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}
.blob-1 { width: 300px; height: 300px; background: var(--orange); top: -80px; left: -80px; animation: blobFloat 8s ease-in-out infinite; }
.blob-2 { width: 250px; height: 250px; background: var(--amber);  bottom: -60px; right: -60px; animation: blobFloat 10s ease-in-out infinite reverse; }
.blob-3 { width: 180px; height: 180px; background: #06b6d4;       top: 50%; left: 60%; animation: blobFloat 7s ease-in-out infinite 2s; }

@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(20px,-20px) scale(1.05); }
    66%      { transform: translate(-15px,15px) scale(0.95); }
}

/* Logo Lazismu */
.hero-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}
.hero-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(232,101,10,0.5));
}
.hero-logo-text {
    font-size: 26px;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
}
.hero-logo-text span { color: var(--amber); }

.hero-tagline {
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-tagline em {
    font-style: normal;
    background: linear-gradient(135deg, var(--amber), #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}
.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.stat-card:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-3px);
}
.stat-card .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--amber);
    display: block;
    margin-bottom: 4px;
}
.stat-card .lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.pill i { color: var(--amber); font-size: 12px; }

/* ─── KANAN: FORM ───────────────────────────────────── */
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    background: white;
    position: relative;
    overflow-y: auto;
}

.form-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--amber), #fb923c);
}

.form-box {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 24px 0;
}

/* Logo mobile */
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}
.mobile-logo img { width: 44px; height: 44px; object-fit: contain; }
.mobile-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: 2px;
}
.mobile-logo-text span { color: var(--orange); }
@media (min-width: 1024px) { .mobile-logo { display: none; } }

/* Greeting */
.greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 16px;
}
.greeting-badge i { font-size: 12px; }

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.2;
}
.form-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 32px;
}

/* Input Group */
.input-group-custom { margin-bottom: 20px; }
.input-group-custom label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s;
}
.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    outline: none;
    transition: all 0.3s;
}
.input-wrapper input:focus {
    background: white;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(232,101,10,0.1);
}
.input-wrapper input:focus ~ .input-icon,
.input-wrapper:has(input:focus) .input-icon {
    color: var(--orange);
}
.input-wrapper input::placeholder { color: #c0ccda; }
.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 15px;
    transition: color 0.3s;
    padding: 4px;
}
.toggle-pw:hover { color: var(--orange); }

/* Error state */
.input-wrapper.has-error input {
    border-color: #ef4444;
    background: #fff5f5;
}
.error-msg {
    display: none;
    font-size: 11px;
    color: #ef4444;
    margin-top: 6px;
    font-weight: 500;
}
.has-error .error-msg { display: block; }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}
.divider-line { flex: 1; height: 1px; background: #f1f5f9; }
.divider span { font-size: 11px; color: #cbd5e1; font-weight: 600; }

/* Login Button */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--orange) 0%, #f59e0b 100%);
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(232,101,10,0.3);
    transition: all 0.3s;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}
.btn-login::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-login:hover::before { left: 100%; }
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(232,101,10,0.4);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Security notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 20px;
}
.security-notice i { color: #16a34a; font-size: 16px; flex-shrink: 0; }
.security-notice span { font-size: 11px; color: #15803d; font-weight: 500; line-height: 1.5; }

/* Footer form */
.form-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.form-footer p {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.7;
}
.form-footer strong { color: var(--orange); font-weight: 700; }

/* Loading spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Alert error laravel */
.alert-error-box {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-error-box i { color: #ef4444; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-error-box p { font-size: 12px; color: #dc2626; font-weight: 500; }

/* Responsive */
@media (max-width: 1023px) {
    body { overflow: auto; }
    .form-panel {
        padding: 48px 24px;
        min-height: 100vh;
    }
}

/* ─── LUPA PASSWORD: LINK ────────────────────────────── */
.forgot-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    text-decoration: none;
}
.forgot-link:hover { opacity: 0.75; }

/* ─── MODAL OVERLAY ─────────────────────────────────── */
.fp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fpFadeIn 0.2s ease;
}
.fp-overlay.open {
    display: flex;
}
@keyframes fpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── MODAL CARD ─────────────────────────────────────── */
.fp-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
    overflow: hidden;
    animation: fpSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes fpSlideUp {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ─── MODAL HEADER ───────────────────────────────────── */
.fp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.fp-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-header-icon i {
    color: white;
    font-size: 18px;
}
.fp-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2px;
}
.fp-subtitle {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}
.fp-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    transition: all 0.2s;
}
.fp-close:hover { background: #fee2e2; border-color: #fca5a5; color: #ef4444; }

/* ─── STEP INDICATOR ─────────────────────────────────── */
.fp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 0;
    gap: 0;
}
.fp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    min-width: 56px;
}
.fp-step span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.fp-step p {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.fp-step.active span {
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(232,101,10,0.35);
}
.fp-step.active p { color: var(--orange); }
.fp-step.completed span {
    background: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}
.fp-step.completed p { color: #16a34a; }
.fp-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: -18px; /* align with circles */
    min-width: 24px;
    max-width: 60px;
    transition: background 0.3s;
}

/* ─── STEP CONTENT ───────────────────────────────────── */
.fp-step-content {
    display: none;
    padding: 20px 24px 24px;
    animation: fpStepIn 0.25s ease;
}
.fp-step-content.active { display: block; }
@keyframes fpStepIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.fp-step-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* ─── MODAL INPUTS ───────────────────────────────────── */
.fp-input-group {
    margin-bottom: 16px;
}
.fp-input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark2);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fp-input-wrap {
    position: relative;
}
.fp-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
}
.fp-input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    outline: none;
    transition: all 0.3s;
}
.fp-input-wrap input:focus {
    background: white;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232,101,10,0.1);
}
.fp-input-wrap:has(input:focus) i { color: var(--orange); }
.fp-input-wrap input::placeholder { color: #c0ccda; }
.fp-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s;
    padding: 4px;
}
.fp-toggle-pw:hover { color: var(--orange); }

/* Field errors */
.fp-field-error {
    display: none;
    font-size: 11px;
    color: #ef4444;
    margin-top: 5px;
    font-weight: 500;
}

/* ─── TOKEN DISPLAY BOX ──────────────────────────────── */
.fp-token-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.fp-token-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(232,101,10,0.25) 0%, transparent 70%);
}
.fp-token-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
}
.fp-token-value {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--amber);
    text-shadow: 0 0 20px rgba(245,158,11,0.5);
    position: relative;
    font-family: 'Poppins', monospace;
}
.fp-token-note {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.fp-token-note i { color: var(--amber); }

/* ─── BUTTONS ────────────────────────────────────────── */
.fp-btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(232,101,10,0.28);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.fp-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s;
}
.fp-btn-primary:hover::before { left: 100%; }
.fp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(232,101,10,0.38); }
.fp-btn-primary:active { transform: translateY(0); }
.fp-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.fp-btn-secondary {
    padding: 13px 18px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.fp-btn-secondary:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* ─── SPINNER (modal) ────────────────────────────────── */
.fp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

/* ─── SUCCESS STATE ──────────────────────────────────── */
.fp-success-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}
.fp-success-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(34,197,94,0.35);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.fp-success-circle i {
    color: white;
    font-size: 28px;
}
.fp-success-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.fp-success-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

