@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #ffffff;
}

/* ── Wrapper ── */
.crm-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left Panel ── */
.crm-left {
    width: 44%;
    background: #0b1629;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Top-right decorative circle */
.crm-left::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: #162847;
    opacity: 1;
    pointer-events: none;
}

/* Bottom-left decorative circle */
.crm-left::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #162847;
    opacity: 0.8;
    pointer-events: none;
}

/* Logo */
.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg { display: block; }

.logo-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

/* Left body */
.left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 0 28px;
}

.tagline {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 400;
}

.tagline em {
    font-style: italic;
    color: #3b82f6;
    display: block;
}

.left-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 320px;
}

/* Features */
.feat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feat-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1e3a6e;
    border: 1.5px solid #2d5299;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-check svg { display: block; }

.feat-label {
    font-size: 13px;
    color: #94a3b8;
}

/* Divider */
.divider-left {
    width: 44px;
    height: 2px;
    background: #1e3a5f;
    border-radius: 2px;
    margin: 24px 0;
}

/* Stat card */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 20px;
    display: inline-flex;
    flex-direction: column;
    width: 100%;
}

.stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.stat-lbl {
    font-size: 11px;
    color: #475569;
}

/* Footer */
.left-footer {
    font-size: 11px;
    color: #1e3a5f;
    position: relative;
    z-index: 1;
}

/* ── Right Panel ── */
.crm-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
}

.form-panel {
    width: 100%;
    max-width: 380px;
}

/* Eyebrow badge */
.form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 24px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Heading */
.form-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 34px;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.15;
    font-weight: 400;
}

.form-sub {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Fields */
.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.field input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder { color: #94a3b8; }

.field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Submit button */
.btn-signin {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.1px;
    transition: background 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-signin:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Error / status messages */
.error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 13px;
}

.status-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #16a34a;
    font-size: 13px;
}

.error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .crm-left { display: none; }
    .crm-right { padding: 32px 24px; }
}
.forgot-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}