/* ============ Login page (split card, Flagship Media sunset look) ============ */
.login-page {
    --lg-orange: #f7931e;
    --lg-red: #e8412c;
    --lg-gradient: linear-gradient(90deg, #f9a31b 0%, #f26b21 55%, #e8412c 100%);
    --lg-pad: 32px;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: var(--lg-pad) 16px;
    background: #fdf8f3;
    position: relative;
    overflow-x: hidden;
}

/* Decorative background waves */
.lg-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lg-bg svg { position: absolute; }
.lg-bg .wave-tl { top: -40px; left: -60px; width: 620px; }
.lg-bg .wave-br { right: -80px; bottom: -60px; width: 760px; }
.lg-bg .dots { position: absolute; width: 220px; height: 160px; background-image: radial-gradient(rgba(242, 107, 33, .22) 1.2px, transparent 1.3px); background-size: 14px 14px; }
.lg-bg .dots-l { left: 3%; top: 32%; }
.lg-bg .dots-r { right: 6%; bottom: 8%; }
.lg-bg .orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fde3cc, #fbd2b0 70%); opacity: .55; }
.lg-bg .orb-1 { width: 240px; height: 240px; right: 9%; top: 13%; }
.lg-bg .orb-2 { width: 110px; height: 110px; left: 12%; top: 57%; }

.lg-tagline {
    position: fixed; z-index: 1; right: 2.5%; top: 44%;
    transform: rotate(-14deg);
    font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
    font-size: 26px; line-height: 1.25; color: #8d8894;
    pointer-events: none; user-select: none;
}
.lg-tagline span { display: block; }
.lg-tagline span:nth-child(2) { padding-left: 14px; }
.lg-tagline span:nth-child(3) { padding-left: 28px; }
.lg-tagline::after { content: ""; display: block; width: 110px; height: 3px; margin: 8px 0 0 60px; border-radius: 3px; background: var(--lg-orange); transform: rotate(-8deg); }

/* Card */
.lg-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 924px;
    display: grid; grid-template-columns: 392px 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(160, 80, 20, .14), 0 4px 14px rgba(34, 29, 51, .06);
    /* Card never taller than the window, so the page does not scroll */
    min-height: min(620px, calc(100dvh - 2 * var(--lg-pad)));
}

/* Left promo panel */
.lg-promo {
    position: relative;
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px 40px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 196, 70, .75), transparent 45%),
        linear-gradient(170deg, #f79a2a 0%, #f2701f 45%, #e9502a 100%);
    overflow: hidden;
}
.lg-promo h2 { position: relative; z-index: 1; font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
.lg-promo h2 span { display: block; font-weight: 400; }
.lg-promo .rule { position: relative; z-index: 1; width: 56px; height: 3px; margin: 18px 0; border-radius: 3px; background: linear-gradient(90deg, #ffd24a, #ff9a3a); }
.lg-promo p { position: relative; z-index: 1; margin: 0; max-width: 300px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .95); }
/* Soft rings so the text-only panel is not flat */
.lg-promo::before, .lg-promo::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.lg-promo::before { width: 340px; height: 340px; right: -150px; bottom: -120px; background: rgba(255, 255, 255, .06); }
.lg-promo::after { width: 200px; height: 200px; right: -70px; bottom: -40px; }

/* Right form panel */
.lg-form { padding: 52px 64px 48px; display: flex; flex-direction: column; justify-content: center; }
.lg-form .auth-logo { width: 290px; max-width: 100%; margin-bottom: 40px; }
.lg-form h1 { font-size: 34px; font-weight: 700; letter-spacing: -.4px; color: #1d1a2e; margin-bottom: 8px; }
.lg-form h1 span { color: var(--lg-orange); }
.lg-form .lead { margin: 0 0 26px; font-size: 16px; color: #7c7889; }

.lg-form .alert { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 10px; border: 0; font-size: 14.5px; margin-bottom: 22px; }
.lg-form .alert .icon { width: 22px; height: 22px; }
.lg-form .alert-success { background: #e7f6ee; color: #1c6b48; }
.lg-form .alert-success .icon { color: #1f9d5c; }

.lg-form .field { margin-bottom: 20px; }
.lg-form .field label { font-size: 15px; font-weight: 600; color: #1d1a2e; margin-bottom: 8px; }
.lg-input { position: relative; }
.lg-input > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8a8698; pointer-events: none; }
.lg-form .field input {
    height: 52px; padding: 0 16px 0 50px;
    font-size: 15.5px;
    border: 1.5px solid #e4e1ea; border-radius: 10px;
    background: #f5f6fb;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.lg-form .field input:focus { border-color: var(--lg-orange); background: #fff; box-shadow: 0 0 0 4px rgba(247, 147, 30, .14); }
.lg-input:focus-within > .icon { color: var(--lg-orange); }
.lg-form .password-wrap input { padding-right: 90px; }
.lg-form .password-wrap .link-btn { right: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: #6d6880; }
.lg-form .password-wrap .link-btn .icon { width: 18px; height: 18px; }
.lg-form .password-wrap .link-btn:hover { color: var(--lg-orange); }

.lg-submit {
    width: 100%; height: 56px; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 12px;
    background: var(--lg-gradient); color: #fff;
    font: inherit; font-size: 18px; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(232, 65, 44, .28);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.lg-submit .icon { width: 20px; height: 20px; transition: transform .15s; }
.lg-submit:hover { filter: brightness(1.04); box-shadow: 0 14px 28px rgba(232, 65, 44, .34); }
.lg-submit:hover .icon { transform: translateX(3px); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(247, 147, 30, .45); outline-offset: 3px; }

/* ============ Responsive ============ */
@media (max-width: 1599px) { .lg-tagline { display: none; } }
@media (max-width: 960px) {
    .lg-card { grid-template-columns: 1fr; max-width: 520px; }
    .lg-promo { padding: 36px 32px; }
    .lg-promo h2 { font-size: 28px; }
    .lg-card { min-height: 0; }
    .lg-form { padding: 40px 40px 44px; }
}
/* Short windows (laptops at 125% zoom etc.): tighten spacing so it all fits */
@media (max-height: 760px) {
    .login-page { --lg-pad: 16px; }
    .lg-promo h2 { font-size: 29px; }
    .lg-promo .rule { margin: 14px 0; }
    .lg-promo p { font-size: 15px; }
    .lg-form { padding: 32px 56px; }
    .lg-form .auth-logo { width: 240px; margin-bottom: 24px; }
    .lg-form h1 { font-size: 29px; margin-bottom: 4px; }
    .lg-form .lead { margin-bottom: 18px; font-size: 15px; }
    .lg-form .alert { padding: 10px 16px; margin-bottom: 16px; }
    .lg-form .field { margin-bottom: 14px; }
    .lg-form .field label { margin-bottom: 6px; }
    .lg-form .field input { height: 46px; }
    .lg-submit { height: 50px; margin-top: 6px; font-size: 17px; }
}
@media (max-width: 600px) {
    .login-page { padding: 16px; }
    .lg-promo { display: none; }
    .lg-form { padding: 32px 24px 36px; }
    .lg-form .auth-logo { width: 220px; margin-bottom: 28px; }
    .lg-form h1 { font-size: 27px; }
    .lg-form .lead { font-size: 15px; }
    .lg-bg .wave-tl { width: 380px; }
    .lg-bg .wave-br { width: 460px; }
}
