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

/* ── Blue/Orange palette ── */
:root {
    --primary:       var(--custom-primary, #003893);   /* primary blue */
    --primary-dark:  var(--custom-primary-dark, #00256D);   /* dark blue */
    --secondary:     var(--custom-secondary, #FF6A00);   /* secondary orange */
    --secondary-light: var(--custom-secondary-light, #FF8A26); /* light orange */
    --accent:        var(--custom-secondary, #FF6A00);   /* accent orange */
    --accent-light:  #e0e7ff;   /* light blue accent */
    --accent-faint:  rgba(0, 56, 147, 0.08);
    --accent-border: rgba(0, 56, 147, 0.20);

    --bg-base:       #F5F7FA;   /* light background */
    --bg-panel:      #FFFFFF;   /* card / form surface */
    --bg-input:      #f8fafc;
    --bg-input-focus:#ffffff;

    --text-primary:  #1F2937;   /* dark text */
    --text-secondary:#6B7280;   /* muted grey */
    --text-label:    #374151;

    --border-subtle: #e2e8f0;
    --border-focus:  var(--custom-primary, #003893);

    --success:       #4ade80;
    --error-bg:      #fef2f2;
    --error-border:  #fecaca;
    --error-text:    #dc2626;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-base);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

/* ── Outer wrapper ── */
.lp-wrap {
    display: flex;
    width: 100%;
    max-width: 1060px;
    min-height: 620px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.10),
                0 0 0 1px rgba(0, 56, 147, 0.10);
    background: var(--bg-panel);
}

/* ── LEFT — Login form ── */
.lp-form-side {
    flex: 1;
    padding: 52px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-panel);
}

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

.lp-brand .brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 56, 147, 0.35);
}

.lp-brand .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.lp-brand .brand-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.lp-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lp-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Error */
.lp-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
}

/* Form fields */
.fg {
    margin-bottom: 18px;
}

.fg label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-label);
    margin-bottom: 7px;
}

.fi-wrap {
    position: relative;
}

.fi-wrap .fi-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 15px;
    pointer-events: none;
}

.fi-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    outline: none;
    transition: all 0.2s;
}

.fi-wrap input:focus {
    border-color: var(--primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--accent-faint);
}

.fi-wrap .toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s;
}

.fi-wrap .toggle-pw:hover {
    color: var(--primary);
}

/* Options row */
.lp-opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.lp-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.lp-remember input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
}

.lp-forgot {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.lp-forgot:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

/* Submit */
.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: all 0.22s;
    letter-spacing: 0.2px;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-border);
}

.lp-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ── RIGHT — Marketing panel ── */
.lp-info-side {
    width: 50%;
    background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 40%, var(--primary) 100%);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--border-subtle);
}

/* decorative circles */
.lp-info-side::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    opacity: 0.06;
    border-radius: 50%;
    top: -120px;
    right: -100px;
}

.lp-info-side::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: var(--secondary);
    opacity: 0.04;
    border-radius: 50%;
    bottom: -80px;
    left: -60px;
}

.lp-info-top {
    position: relative;
    z-index: 2;
}

.lp-tagline {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
}

.lp-tagline span {
    color: var(--secondary-light);
}

.lp-desc {
    font-size: 14px;
    color: rgba(245, 240, 224, 0.55);
    line-height: 1.7;
    margin-bottom: 34px;
}

/* Big stats row */
.lp-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 34px;
}

.lp-stat {
    flex: 1;
    background: var(--accent-faint);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
}

.lp-stat .st-icon {
    font-size: 22px;
    color: var(--secondary-light);
    margin-bottom: 8px;
}

.lp-stat .st-val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.lp-stat .st-lbl {
    font-size: 11px;
    color: rgba(245, 240, 224, 0.45);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tips */
.lp-tips-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(245, 240, 224, 0.40);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.lp-tips {
    display: flex;
    flex-direction: column;
    gap: 11px;
    position: relative;
    z-index: 2;
}

.lp-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 160, 23, 0.10);
    border-radius: 12px;
    padding: 13px 14px;
}

.lp-tip .tip-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: rgba(0, 56, 147, 0.12);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--secondary-light);
}

.lp-tip h5 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.lp-tip p {
    font-size: 12px;
    color: rgba(245, 240, 224, 0.50);
    line-height: 1.5;
}

.lp-info-bottom {
    position: relative;
    z-index: 2;
}

.lp-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(245, 240, 224, 0.35);
    margin-top: 24px;
}

.lp-secure i {
    color: var(--success);
    font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .lp-info-side {
        display: none;
    }

    .lp-form-side {
        padding: 44px 32px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        align-items: stretch;
    }

    .lp-wrap {
        border-radius: 0;
        min-height: 100vh;
    }

    .lp-form-side {
        padding: 40px 24px;
    }
}