/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: #f1f5f9;
}

/* ── Layout ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════ */
.left-panel {
    flex: 1;
    background: linear-gradient(145deg, #0a1628 0%, #0f2040 45%, #16305c 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* decorative blob */
.blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.brand-icon {
    width: 52px;
    height: 52px;
    background: transparent;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.brand-icon img, .brand-icon svg { width: 52px; height: 52px; }

.brand-icon.sm {
    width: 40px;
    height: 40px;
}
.brand-icon.sm img, .brand-icon.sm svg { width: 40px; height: 40px; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #fff;
}

.brand-name .gold { color: #60a5fa; font-weight: 800; }

.brand-sub {
    font-size: 9.5px;
    letter-spacing: 2px;
    opacity: 0.55;
    margin-top: 3px;
    text-transform: uppercase;
}

.hero-text .accent { color: #93c5fd; }

.brand-name.dark { color: #0f172a; }
.brand-name.dark .gold { color: #3b82f6; }
.brand-sub.dark  { color: #64748b; opacity: 1; }

/* Hero */
.hero-text { z-index: 1; }

.hero-text h1 {
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text .accent { color: #93c5fd; }

.hero-text p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 420px;
}

/* Feature list */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.feat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.feat-icon svg {
    width: 18px;
    height: 18px;
    color: #a5b4fc;
}

/* ══════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════ */
.right-panel {
    width: 520px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.form-card {
    width: 100%;
    max-width: 420px;
}

.form-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.form-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

/* Alert */
.alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fff1f2;
    border: 1px solid #fda4af;
    color: #be123c;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.input-icon svg {
    width: 17px;
    height: 17px;
}

.form-control {
    width: 100%;
    padding: 13px 44px 13px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    background: #fff;
}

.form-control::placeholder { color: #cbd5e1; }

.toggle-pw {
    position: absolute;
    right: 13px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: grid;
    place-items: center;
    padding: 4px;
}

.toggle-pw svg { width: 17px; height: 17px; }
.toggle-pw:hover { color: #3b82f6; }

.field-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* Row: remember + forgot */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

/* Sign-in button */
.btn-signin {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.38);
}

.btn-signin:hover  { opacity: 0.93; transform: translateY(-1px); }
.btn-signin:active { transform: translateY(0); }

/* Security badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    font-size: 11.5px;
    color: #94a3b8;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .left-panel { display: none; }
    .right-panel { width: 100%; padding: 32px 20px; }
}
