/* =====================================================
   LOGIN PESERTA - DYNAMIC LIGHT / DARK THEME
   JAYA ASSESSMENT SYSTEM
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('theme.css');

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
}

/* Floating Login Theme Toggle */
.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.login-container {
    width: 100%;
    max-width: 980px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    min-height: 580px;
}

/* =========================
   LEFT: HERO BRANDING PANEL
========================= */
.login-hero {
    background: linear-gradient(145deg, #050811 0%, #070d1a 45%, #0a1329 100%);
    color: #ffffff;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}

.login-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.brand-text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
    display: block;
}

.brand-text span {
    color: #94a3b8;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.hero-main {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    color: var(--blue-glow);
}

.hero-main h1 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.hero-main p {
    font-size: 13px;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* COMPANY PREVIEW BANNER */
.company-verified-box {
    background: rgba(15, 30, 66, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.company-verified-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.company-verified-header span {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-glow);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.company-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
}

.company-verified-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.company-verified-desc {
    font-size: 12px;
    color: #94a3b8;
}

.hero-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}

/* =========================
   RIGHT: LOGIN FORM PANEL
========================= */
.login-form-panel {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
}

.form-header {
    margin-bottom: 20px;
}

.form-eyebrow {
    font-size: 10px;
    font-weight: 800;
    color: var(--blue-glow);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.form-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-header p {
    font-size: 12.5px;
    color: var(--text-soft);
}

/* ALERTS */
.alert-error {
    background: var(--red-bg);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-info {
    background: var(--primary-soft);
    border: 1px solid var(--primary-ring);
    color: var(--blue-glow);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FORM FIELDS */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-navy);
    margin-bottom: 6px;
}

.form-group label span.label-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-soft);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-soft);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-navy);
    background: var(--card-sub-bg);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-glow);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* VERIFIED PARTICIPANT CARD (LIVE PREVIEW) */
.participant-preview-card {
    background: var(--card-sub-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue-glow);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.participant-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.preview-status-pill {
    font-size: 10px;
    font-weight: 700;
    color: var(--green-text);
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    padding: 2px 7px;
    border-radius: 10px;
}

.participant-preview-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.preview-item span {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
}

.preview-item strong {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-navy);
}

/* SUBMIT BUTTON */
.btn-submit-login {
    width: 100%;
    padding: 11px 18px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-login:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
    transform: translateY(-1px);
}

.form-footer-nav {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-soft);
}

.form-footer-nav a {
    color: var(--blue-glow);
    font-weight: 600;
    text-decoration: none;
}

.form-footer-nav a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 840px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .login-hero {
        padding: 26px 22px;
    }
    .login-form-panel {
        padding: 26px 22px;
    }
}
