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

body { font-family: 'Inter', sans-serif; height: 100vh; overflow: hidden; }

.login-wrapper { display: flex; height: 100vh; width: 100%; }

.left-panel {
    flex: 0 0 55%;
    background: linear-gradient(135deg, #020d1f 0%, #0a1e3d 40%, #0d2a52 70%, #091829 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(74,144,217,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99,102,241,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 2;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.top-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding-left: 24px;
}

.logo-large {
    height: 95px;
    width: auto;
    max-width: 44%;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.hero-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 32px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 18px;
    font-weight: 500;
    color: #4a90d9;
    letter-spacing: 1px;
}

.right-panel {
    flex: 0 0 45%;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.card-header { text-align: center; }

.admin-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0a1e3d, #1a4a8a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.admin-icon svg { width: 26px; height: 26px; color: #d4af37; }

.card-header h2 { font-size: 26px; font-weight: 800; color: #0d1b3e; margin-bottom: 6px; }
.card-header p { font-size: 13px; color: #6b7280; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

#login-form { display: flex; flex-direction: column; gap: 16px; }

.field-group { width: 100%; }

.input-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 14px;
    height: 52px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    gap: 10px;
}

.input-row:focus-within {
    border-color: #1a4a8a;
    box-shadow: 0 0 0 3px rgba(26,74,138,0.1);
}

.field-icon { display: flex; align-items: center; color: #9ca3af; flex-shrink: 0; }
.field-icon svg { width: 18px; height: 18px; }

.input-row input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: transparent;
}

.input-row input::placeholder { color: #9ca3af; }

.pw-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: #9ca3af;
    transition: color 0.2s;
}

.pw-toggle:hover { color: #1a4a8a; }
.pw-toggle svg { width: 18px; height: 18px; }

.btn-signin {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #0a1e3d 0%, #1a4a8a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-signin:hover { opacity: 0.9; }
.btn-signin:active { transform: scale(0.99); }
.btn-signin:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-signin svg { width: 18px; height: 18px; }

.card-footer { font-size: 11.5px; color: #9ca3af; text-align: center; line-height: 1.6; }

@media (max-width: 768px) {
    body { overflow-y: auto; height: auto; }
    .login-wrapper { flex-direction: column; height: auto; }
    .left-panel { flex: 0 0 auto; padding: 28px 20px; }
    .left-content { padding: 0; gap: 24px; }
    .top-branding { padding-left: 0; gap: 16px; }
    .logo-large { height: 70px; }
    .hero-section { padding-left: 0; }
    .hero-title { font-size: 26px; }
    .right-panel { flex: 0 0 auto; padding: 24px 16px 40px; }
    .login-card { padding: 32px 24px; max-width: 100%; }
}
