/* ============================================================
   Soft Cloud GDS Gateway — Login Page
   Compatible: 1080p, QHD (2560px), 4K UHD (3840px)
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    --lp-p900: #0D1B4B;
    --lp-p800: #162054;
    --lp-p700: #1B2B7B;
    --lp-p600: #2238A0;
    --lp-p500: #2B48C8;
    --lp-p100: #E8EDFF;
    --lp-p50:  #F0F4FF;
    --lp-teal: #00C9A7;
    --lp-n900: #111827;
    --lp-n700: #374151;
    --lp-n500: #6B7280;
    --lp-n400: #9CA3AF;
    --lp-n200: #E5E7EB;
    --lp-n100: #F3F4F6;
    --lp-danger: #DC2626;
    --lp-danger-bg: #FEE2E2;
}

/* ── Page Layout ────────────────────────────────────────────── */
.lp {
    display: flex;
    height: 100dvh;
    min-height: 560px;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ── Left Panel ─────────────────────────────────────────────── */
.lp-left {
    width: 50%;
    background: linear-gradient(135deg, var(--lp-p900) 0%, var(--lp-p800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Decorative circles */
.lp-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.lp-deco-1 {
    width: clamp(280px, 26vw, 540px);
    height: clamp(280px, 26vw, 540px);
    background: rgba(255, 255, 255, 0.05);
    top: -12%;
    left: -10%;
}
.lp-deco-2 {
    width: clamp(180px, 18vw, 380px);
    height: clamp(180px, 18vw, 380px);
    background: rgba(255, 255, 255, 0.05);
    bottom: -10%;
    right: -8%;
}
.lp-deco-3 {
    width: clamp(80px, 8vw, 160px);
    height: clamp(80px, 8vw, 160px);
    background: rgba(255, 255, 255, 0.04);
    top: 42%;
    left: 8%;
}

/* Left content */
.lp-left-content {
    position: relative;
    z-index: 1;
    width: clamp(300px, 28vw, 560px);
    padding: 0 clamp(20px, 2vw, 48px);
}

/* Icon card (plane) */
.lp-icon-card {
    width: clamp(56px, 4.5vw, 88px);
    height: clamp(56px, 4.5vw, 88px);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(20px, 2vw, 36px);
}
.lp-icon-card svg {
    width: clamp(26px, 2.2vw, 44px);
    height: clamp(26px, 2.2vw, 44px);
    color: var(--lp-teal);
    stroke: var(--lp-teal);
}

/* Headline */
.lp-headline {
    font-size: clamp(1.5rem, 1.8vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: clamp(8px, 0.8vw, 16px);
}

/* Subtitle */
.lp-subtitle {
    font-size: clamp(0.875rem, 0.9vw, 1.1rem);
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: clamp(24px, 2.5vw, 48px);
}

/* Feature bullets */
.lp-bullets {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.2vw, 24px);
    list-style: none;
    padding: 0;
    margin: 0;
}
.lp-bullet {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1vw, 20px);
}
.lp-bullet-icon {
    flex-shrink: 0;
    width: clamp(36px, 3vw, 52px);
    height: clamp(36px, 3vw, 52px);
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-bullet-icon svg {
    width: clamp(16px, 1.4vw, 24px);
    height: clamp(16px, 1.4vw, 24px);
    stroke: var(--lp-teal);
}
.lp-bullet-text {
    font-size: clamp(0.8rem, 0.85vw, 1.05rem);
    color: rgba(255, 255, 255, 0.90);
    font-weight: 400;
}

/* Feature grid — white-label branded login only (replaces .lp-bullets there). A 3-col grid of
   translucent "box" cards, matched to how the reference site shows its 6 core services as cards
   over the hero photo, rather than our original plain vertical icon+text list. */
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 0.9vw, 14px);
}
.lp-feature-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: clamp(64px, 5.5vw, 84px);
    padding: clamp(10px, 1vw, 16px);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}
.lp-feature-card svg {
    width: clamp(18px, 1.6vw, 26px);
    height: clamp(18px, 1.6vw, 26px);
    stroke: var(--lp-teal);
    flex-shrink: 0;
}
.lp-feature-card span {
    font-size: clamp(0.72rem, 0.78vw, 0.95rem);
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}
@media (max-width: 1023.98px) {
    .lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Right Panel ─────────────────────────────────────────────── */
.lp-right {
    width: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    flex-shrink: 0;
}

.lp-right-content {
    width: clamp(300px, 26vw, 480px);
    padding: clamp(24px, 2.5vw, 48px) clamp(16px, 1.5vw, 32px);
}

/* Logo */
.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(24px, 2.4vw, 48px);
    text-decoration: none;
}
.lp-logo-icon {
    width: clamp(32px, 2.8vw, 48px);
    height: clamp(32px, 2.8vw, 48px);
    background: var(--lp-p50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lp-logo-icon svg {
    width: clamp(18px, 1.6vw, 28px);
    height: clamp(18px, 1.6vw, 28px);
    stroke: var(--lp-p700);
}
.lp-logo-wordmark {
    font-size: clamp(1rem, 1.1vw, 1.5rem);
    font-weight: 700;
    color: var(--lp-p700);
    letter-spacing: -0.02em;
}

/* Welcome heading */
.lp-welcome {
    font-size: clamp(1.25rem, 1.5vw, 2rem);
    font-weight: 700;
    color: var(--lp-n900);
    line-height: 1.2;
    margin-bottom: 6px;
}
.lp-welcome-sub {
    font-size: clamp(0.875rem, 0.9vw, 1.1rem);
    color: var(--lp-n500);
    margin-bottom: clamp(20px, 2vw, 36px);
    line-height: 1.5;
}

/* UAT credentials hint */
.lp-uat-hint {
    margin-top: clamp(12px, 1.2vw, 20px);
    text-align: center;
    font-size: 0.7rem;
    color: var(--lp-n400);
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
    background: var(--lp-n100);
    border: 1px solid var(--lp-n200);
    border-radius: 6px;
    padding: 7px 12px;
    line-height: 1.4;
}

/* Footer */
.lp-footer {
    margin-top: clamp(16px, 1.6vw, 28px);
    text-align: center;
    font-size: clamp(0.7rem, 0.72vw, 0.825rem);
    color: var(--lp-n400);
}

/* "New to {Agency}?" divider + support box — white-label branded login only, below the (unchanged) form */
.lp-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: clamp(24px, 2.4vw, 40px);
    font-size: 0.8rem;
    color: var(--lp-n500);
}
.lp-divider::before,
.lp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lp-n200);
}
.lp-divider-link {
    display: block;
    text-align: center;
    margin-top: 12px;
}
.lp-text-link {
    color: var(--lp-p700);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.lp-text-link:hover { text-decoration: underline; }

.lp-support-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: clamp(24px, 2.4vw, 36px);
    padding-top: clamp(20px, 2vw, 28px);
    border-top: 1px solid var(--lp-n200);
}
.lp-support-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--lp-p500);
    color: var(--lp-p700);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-support-icon svg { width: 18px; height: 18px; }
.lp-support-box p {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: var(--lp-n700);
    line-height: 1.4;
}

/* ── Responsive — Tablet (768–1023px) ───────────────────────── */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .lp-left-content { padding: 0 20px; }
    .lp-subtitle { max-width: 280px; }
    .lp-headline { font-size: 1.5rem; }
}

/* ── Responsive — Mobile (<768px) ──────────────────────────── */
@media (max-width: 767.98px) {
    .lp {
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
    }
    .lp-left {
        display: none;
    }
    .lp-right {
        width: 100%;
        min-height: 100dvh;
        overflow: visible;
        align-items: flex-start;
        padding-top: 40px;
    }
    .lp-right-content {
        width: 100%;
        max-width: 420px;
        padding: 32px 24px 48px;
    }
}

/* ── QHD (2560px) ────────────────────────────────────────────── */
@media (min-width: 2560px) {
    .lp-label { font-size: 0.78rem; }
    .lp-uat-hint { font-size: 0.78rem; }
    .lp-footer { font-size: 0.85rem; }
    .lp-input-icon { width: 18px; height: 18px; }
    .lp-bullet-icon { border-radius: 14px; }
}

/* ── 4K UHD (3840px) ─────────────────────────────────────────── */
@media (min-width: 3840px) {
    .lp-deco-1 { width: 640px; height: 640px; }
    .lp-deco-2 { width: 440px; height: 440px; }
    .lp-deco-3 { width: 200px; height: 200px; }
    .lp-icon-card { border-radius: 20px; }
    .lp-bullet-icon { border-radius: 16px; }
    .lp-logo-icon { border-radius: 14px; }
    .lp-input { border-radius: 10px; }
    .lp-btn { border-radius: 10px; }
    .lp-label { font-size: 0.85rem; letter-spacing: 0.09em; }
    .lp-input-icon { width: 20px; height: 20px; left: 16px; }
    .lp-input { padding-left: 46px; }
}
