/* ============================================================
   GLOBAL VARIABLES & RESET
   ============================================================ */
:root {
    --brand-primary: #4F46E5;
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    --bg-body: #FAFAF7;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --input-focus: #e0e7ff;
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

* { 
    box-sizing: border-box; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(221, 121, 0, 0.015) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.container {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ============================================================
   HERO & BENTO GRID SECTION (LEFT SIDE)
   ============================================================ */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.brand-logo {
    width: 48px; height: 48px;
    background: var(--brand-gradient);
    color: white; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 8px 16px rgba(79, 70, 229, 0.15);
}

.brand-card h2 { margin: 0; color: var(--text-main); font-weight: 800; }
.brand-card p { margin: 0; }

.info-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bento-item {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-premium);
}

.bento-item.large {
    grid-column: span 2;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.bento-item i { font-size: 24px; color: var(--brand-primary); margin-bottom: 12px; display: inline-block; }
.bento-item h3 { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 8px; }
.bento-item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ============================================================
   FORM CARD CONTROLLER (RIGHT SIDE)
   ============================================================ */
.login-card {
    background: var(--bg-surface);
    padding: 44px 36px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.04);
    border: 1px solid #f1f5f9;
}

.login-card h1 { font-size: 24px; font-weight: 800; color: var(--text-main); margin: 0; }
.subtitle { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 24px; }

/* Multi-step Indicators */
.step-info {
    display: flex; justify-content: space-between; align-items: center;
    background: #f8fafc; padding: 10px 16px; border-radius: 12px; margin-bottom: 24px;
}

.step-dots { display: flex; gap: 6px; align-items: center; }
.step-dots .dot { width: 8px; height: 8px; background: #cbd5e1; border-radius: 50%; }
.step-dots .dot.active { width: 20px; background: var(--brand-primary); border-radius: 4px; }

/* Form Components */
.input-group { text-align: left; margin-bottom: 18px; display: block; }
label { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; display: block; padding-left: 2px; }
.input-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.input-wrapper i.main-icon { position: absolute; left: 16px; color: var(--text-muted); font-size: 18px; }

.input-field {
    width: 100%; padding: 13px 16px 14px 46px;
    background: #fafafa; border: 1.5px solid var(--border-color);
    border-radius: 12px; font-family: inherit; font-size: 14.5px;
    color: var(--text-main); outline: none;
}
.input-field:focus { border-color: var(--brand-primary); background: #fff; box-shadow: 0 0 0 4px var(--input-focus); }

.toggle-pwd {
    position: absolute; right: 12px; background: none; border: none;
    color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 8px;
}

.step-page { display: none; }
.step-page.active { display: block; }

/* Buttons Style */
.btn { width: 100%; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; }
.btn-next { background: var(--brand-gradient); color: white; box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2); }
.btn-next:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(79, 70, 229, 0.3); }

.actions { display: flex; gap: 12px; }
.btn-back { background: #f1f5f9; color: #475569; width: 35%; }
.btn-back:hover { background: #e2e8f0; }
.btn-submit { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; width: 65%; box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2); }
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(16, 185, 129, 0.3); }

.foot-text { margin-top: 20px; font-size: 13.5px; color: var(--text-muted); text-align: center; }
.foot-text a { color: var(--brand-primary); text-decoration: none; font-weight: 700; }
.foot-text a:hover { text-decoration: underline; }

/* Alert Box */
.alert-box {
    background: #fff1f2; border-left: 4px solid #f43f5e; color: #9f1239;
    padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; text-align: left; display: flex; align-items: center; gap: 8px;
}
.alert-box.alert-success { background: #f0fdf4; border-left-color: #22c55e; color: #14532d; }
.modal-content { border-radius: 24px; border: none; }

/* ============================================================
   RESPONSIVE MEDIA QUERIES ENGINE
   ============================================================ */

/* 1. TABLET LANDSCAPE & PORTRAIT (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 650px;
    }
    .hero-section { text-align: center; }
    .brand-card { justify-content: center; margin-bottom: 24px; }
    body { padding: 30px 20px; }
}

/* 2. MOBILE DEVICE BREAKPOINT (max-width: 576px) */
@media (max-width: 576px) {
    body { padding: 20px 16px; }
    .container { gap: 32px; }
    
    .login-card { 
        padding: 32px 20px; 
        border-radius: 24px; 
    }
    .login-card h1 { font-size: 21px; }
    
    .info-bento { grid-template-columns: 1fr; gap: 12px; }
    .bento-item.large { grid-column: span 1; }
    .bento-item { padding: 18px; border-radius: 16px; }
    
    .input-field { font-size: 14px; padding: 12px 16px 12px 42px; }
    .input-wrapper i.main-icon { left: 14px; font-size: 16px; }
    
    .btn { font-size: 14px; padding: 12px; }
    .foot-text { font-size: 13px; }
}