/* SISMIK Landing Page + Login Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body:not(.has-bg) { background: linear-gradient(135deg, #0a3d0a 0%, #1a5d1a 30%, #2e8b2e 60%, #1a5d1a 100%); }

body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* Particles */
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 2; pointer-events: none; }
.particle { position: absolute; width: 10px; height: 10px; background: rgba(255,255,255,0.08); border-radius: 50%; animation: float 15s infinite; }
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; width: 6px; height: 6px; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 25s; width: 8px; height: 8px; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 45%; animation-delay: 1s; animation-duration: 22s; width: 12px; height: 12px; }
.particle:nth-child(5) { left: 55%; animation-delay: 3s; animation-duration: 19s; width: 7px; height: 7px; }
.particle:nth-child(6) { left: 65%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 75%; animation-delay: 0.5s; animation-duration: 24s; width: 9px; height: 9px; }
.particle:nth-child(8) { left: 85%; animation-delay: 2.5s; animation-duration: 17s; width: 5px; height: 5px; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== LANDING PAGE LAYOUT ===== */
.landing-page {
    position: relative; z-index: 10;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* --- Navbar --- */
.landing-navbar {
    padding: 18px 40px;
    display: flex; align-items: center; justify-content: space-between;
    animation: fadeInUp 0.6s ease-out;
}
.navbar-brand {
    display: flex; align-items: center; gap: 12px;
}
.navbar-brand img {
    width: 40px; height: 40px; object-fit: contain;
    border-radius: 10px; background: white; padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.navbar-brand span {
    font-size: 20px; font-weight: 800; color: white;
    letter-spacing: -0.3px;
}
.navbar-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 7px 16px; border-radius: 50px;
    color: rgba(255,255,255,0.85); font-size: 11px; font-weight: 600;
    letter-spacing: 0.3px;
}
.navbar-badge i { color: #6ee7b7; font-size: 12px; }

/* --- Hero Section (compact center) --- */
.landing-hero {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 40px 30px;
}
.hero-inner {
    display: flex; align-items: stretch; gap: 48px;
    max-width: 1040px; width: 100%;
}

/* Left: Branding */
.hero-brand {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    animation: fadeInUp 0.7s 0.1s ease-out both;
}
.hero-title-row {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
}
.hero-logo-img {
    width: 60px; height: 60px; object-fit: contain;
    border-radius: 14px; background: white; padding: 7px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.hero-title h1 {
    font-size: 32px; font-weight: 800; color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    line-height: 1.1; letter-spacing: -0.5px;
}
.hero-title p {
    font-size: 13px; color: rgba(255,255,255,0.7);
    font-weight: 400; margin-top: 3px;
}
.hero-desc {
    font-size: 15px; color: rgba(255,255,255,0.82);
    line-height: 1.7; margin-bottom: 24px; max-width: 440px;
}
.hero-desc strong { color: white; }

/* Feature Grid */
.feature-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-bottom: 22px;
    animation: fadeInUp 0.7s 0.25s ease-out both;
}
.feature-card {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.07); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 12px 14px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}
.feature-icon {
    width: 34px; height: 34px; min-width: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: white;
}
.feature-icon.green { background: linear-gradient(135deg, #059669, #10b981); }
.feature-icon.blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.feature-icon.purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.feature-icon.amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.feature-icon.rose { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.feature-icon.teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.feature-card h3 { font-size: 12px; font-weight: 700; color: white; line-height: 1.3; }
.feature-card p { font-size: 10px; color: rgba(255,255,255,0.55); line-height: 1.3; }

/* Stats Bar */
.stats-bar {
    display: flex; gap: 28px;
    animation: fadeInUp 0.7s 0.35s ease-out both;
}
.stat-item { text-align: center; }
.stat-num { font-size: 18px; font-weight: 800; color: #6ee7b7; line-height: 1; }
.stat-label { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

/* Right: Login Card */
.hero-login {
    width: 380px; min-width: 340px;
    display: flex; align-items: center;
    animation: fadeInUp 0.7s 0.15s ease-out both;
}
.login-card {
    width: 100%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 36px 28px;
    position: relative; overflow: hidden;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #6ee7b7, #10b981, #059669);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}
.login-card-header { text-align: center; margin-bottom: 26px; }
.login-card-header h2 { color: white; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-card-header p { color: rgba(255,255,255,0.6); font-size: 12px; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; color: rgba(255,255,255,0.85); font-weight: 600;
    font-size: 11px; margin-bottom: 7px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.input-wrapper { position: relative; }
.input-wrapper > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.5); font-size: 15px;
}
.form-group input {
    width: 100%; padding: 13px 16px 13px 42px;
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 11px; font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.08); color: white;
}
.form-group input::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus {
    outline: none; border-color: rgba(110,231,183,0.5);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 0 0 3px rgba(110,231,183,0.1);
}
.toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.45);
    cursor: pointer; padding: 4px; font-size: 14px;
}
.toggle-password:hover { color: white; }

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    color: white; border: none; padding: 14px; border-radius: 11px;
    font-size: 14px; font-weight: 700; font-family: 'Poppins', sans-serif;
    cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.8px;
    position: relative; overflow: hidden;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(5,150,105,0.4); }
.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: 0.5s;
}
.btn-login:hover::before { left: 100%; }

/* Divider & Guest */
.login-divider {
    display: flex; align-items: center; gap: 10px; margin: 16px 0 12px;
}
.login-divider span { color: rgba(255,255,255,0.35); font-size: 10px; white-space: nowrap; }
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.12);
}
.btn-guest {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 16px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 11px; color: white; font-size: 12px;
    font-weight: 600; text-decoration: none; transition: all 0.3s;
}
.btn-guest:hover {
    background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
.login-footer {
    text-align: center; margin-top: 18px;
    padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1);
}
.login-footer p { color: rgba(255,255,255,0.35); font-size: 10px; }

/* Success Alert */
.success-alert {
    background: rgba(16,185,129,0.18); color: #6ee7b7;
    padding: 10px 14px; border-radius: 10px;
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    font-size: 12px; border: 1px solid rgba(16,185,129,0.25);
}

/* Error Modal */
.error-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 9999; align-items: center; justify-content: center;
}
.error-modal-overlay.active { display: flex; }
.error-modal {
    background: white; border-radius: 20px; width: 380px; max-width: 90%;
    overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: errorModalIn 0.4s ease; text-align: center;
}
@keyframes errorModalIn {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.error-modal-icon { background: linear-gradient(135deg, #fee2e2, #fecaca); padding: 28px; }
.error-modal-icon i { font-size: 44px; color: #dc2626; animation: shake 0.6s ease; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.error-modal-body { padding: 24px; }
.error-modal-body h3 { color: #1e293b; font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.error-modal-body p { color: #64748b; font-size: 13px; margin: 0 0 20px; line-height: 1.5; }
.error-modal-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white; border: none; padding: 11px 28px; border-radius: 10px;
    font-size: 13px; font-weight: 600; font-family: 'Poppins', sans-serif;
    cursor: pointer; transition: all 0.3s;
}
.error-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(220,38,38,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .landing-navbar { padding: 16px 20px; }
    .navbar-badge { display: none; }
    .landing-hero { padding: 10px 20px 30px; }
    .hero-inner { flex-direction: column; gap: 28px; align-items: center; }
    .hero-brand { align-items: center; text-align: center; }
    .hero-title-row { justify-content: center; }
    .hero-desc { text-align: center; max-width: 100%; }
    .feature-grid { display: none; }
    .stats-bar { display: none; }
    .hero-login { width: 100%; max-width: 420px; min-width: unset; }
}

@media (max-width: 480px) {
    .landing-hero { padding: 10px 16px 24px; }
    .hero-title-row { flex-direction: column; gap: 10px; }
    .hero-title h1 { font-size: 26px; text-align: center; }
    .hero-title p { text-align: center; }
    .login-card { padding: 28px 20px; border-radius: 16px; }
    .login-card-header h2 { font-size: 18px; }
}
