/* ============================================================
   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;
}

/* ── 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;
}

/* Error alert */
.lp-error {
    background: var(--lp-danger-bg);
    border-left: 4px solid var(--lp-danger);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: clamp(0.8rem, 0.85vw, 0.95rem);
    color: var(--lp-danger);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.lp-error svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--lp-danger);
    margin-top: 1px;
}

/* Form */
.lp-form {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.4vw, 22px);
}

/* Field */
.lp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lp-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--lp-n700);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Input wrapper */
.lp-input-wrap {
    position: relative;
}
.lp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--lp-n400);
    pointer-events: none;
    flex-shrink: 0;
}

/* Input */
.lp-input {
    width: 100%;
    height: clamp(44px, 3.5vw, 56px);
    padding: 0 14px 0 40px;
    background: var(--lp-p50);
    border: 1.5px solid var(--lp-n200);
    border-radius: 8px;
    font-size: clamp(0.875rem, 0.9vw, 1rem);
    font-family: inherit;
    color: var(--lp-n900);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    outline: none;
    -webkit-appearance: none;
}
.lp-input::placeholder {
    color: var(--lp-n400);
}
.lp-input:focus {
    border-color: var(--lp-p500);
    box-shadow: 0 0 0 3px rgba(43, 72, 200, 0.12);
    background: #fff;
}
.lp-input.input-error {
    border-color: var(--lp-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

/* Validation message */
.lp-val-msg {
    font-size: 0.75rem;
    color: var(--lp-danger);
    min-height: 1em;
}

/* Password toggle button */
.lp-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--lp-n400);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.lp-eye-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}
.lp-eye-btn:hover {
    color: var(--lp-n700);
    background: var(--lp-n100);
}
.lp-input-pw {
    padding-right: 44px !important;
}

/* Remember me + Forgot password row */
.lp-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.lp-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    color: var(--lp-n700);
    cursor: pointer;
    user-select: none;
}
.lp-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--lp-p700);
    cursor: pointer;
    flex-shrink: 0;
}
.lp-forgot {
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    color: var(--lp-p500);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.lp-forgot:hover {
    color: var(--lp-p700);
    text-decoration: underline;
}

/* Submit button */
.lp-btn {
    width: 100%;
    height: clamp(48px, 3.8vw, 60px);
    background: var(--lp-p700);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 0.95vw, 1.1rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
    margin-top: 4px;
}
.lp-btn:hover {
    background: var(--lp-p600);
}
.lp-btn:active {
    transform: scale(0.99);
    background: var(--lp-p800);
}
.lp-btn:disabled {
    opacity: 0.70;
    cursor: not-allowed;
    transform: none;
}
.lp-btn-arrow {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* Spinner */
.lp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

/* 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);
}

/* ── 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; }
}
