/* SmileOnBot — ZeroBot-style login portal */
:root {
    --lp-bg: #06050b;
    --lp-bg-elevated: #0d0b14;
    --lp-surface: rgba(16, 14, 24, 0.72);
    --lp-surface-strong: rgba(22, 19, 32, 0.92);
    --lp-border: rgba(255, 255, 255, 0.08);
    --lp-border-hover: rgba(255, 255, 255, 0.14);
    --lp-text: #f3f0f8;
    --lp-text-muted: #8b8499;
    --lp-accent: #be185d;
    --lp-accent-light: #ec4899;
    --lp-accent-deep: #7f1239;
    --lp-accent-glow: rgba(190, 24, 93, 0.35);
    --lp-violet: #8b5cf6;
    --lp-violet-glow: rgba(139, 92, 246, 0.25);
    --lp-success: #10b981;
    --lp-danger: #ef4444;
    --lp-gradient: linear-gradient(135deg, #7f1239 0%, #be185d 42%, #ec4899 100%);
    --lp-gradient-soft: linear-gradient(135deg, rgba(127, 18, 57, 0.35), rgba(236, 72, 153, 0.2));
    --lp-radius-xl: 28px;
    --lp-radius-lg: 20px;
    --lp-radius-md: 14px;
    --lp-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --lp-font: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-portal="admin"] {
    --lp-accent: #f59e0b;
    --lp-accent-light: #fbbf24;
    --lp-accent-deep: #b45309;
    --lp-accent-glow: rgba(245, 158, 11, 0.32);
    --lp-gradient: linear-gradient(135deg, #92400e 0%, #f59e0b 45%, #fcd34d 100%);
    --lp-gradient-soft: linear-gradient(135deg, rgba(146, 64, 14, 0.35), rgba(251, 191, 36, 0.18));
}

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

html, body {
    min-height: 100%;
    font-family: var(--lp-font);
    background: var(--lp-bg);
    color: var(--lp-text);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

.lp-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lp-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 8% 12%, rgba(190, 24, 93, 0.18), transparent 58%),
        radial-gradient(ellipse 55% 45% at 92% 8%, rgba(139, 92, 246, 0.14), transparent 52%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(127, 18, 57, 0.12), transparent 55%);
}

:root[data-portal="admin"] .lp-ambient {
    background:
        radial-gradient(ellipse 70% 55% at 8% 12%, rgba(245, 158, 11, 0.16), transparent 58%),
        radial-gradient(ellipse 55% 45% at 92% 8%, rgba(190, 24, 93, 0.12), transparent 52%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(180, 83, 9, 0.1), transparent 55%);
}

.lp-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
}

.lp-hero {
    position: relative;
    padding: clamp(28px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--lp-border);
    background:
        linear-gradient(175deg, rgba(7, 6, 13, 0.94) 0%, rgba(17, 14, 28, 0.88) 35%, rgba(34, 28, 58, 0.82) 100%);
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black 20%, transparent 95%);
    animation: lpGridDrift 28s linear infinite;
}

@keyframes lpGridDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(48px, 48px); }
}

.lp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.lp-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(32px, 6vh, 56px);
}

.lp-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--lp-gradient);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 32px var(--lp-accent-glow);
    position: relative;
}

.lp-brand-mark::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: lpPulseRing 3s ease-in-out infinite;
}

@keyframes lpPulseRing {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.04); }
}

.lp-brand-mark i {
    font-size: 22px;
    color: #fff;
}

.lp-brand-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lp-brand-text span {
    font-size: 0.72rem;
    color: var(--lp-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-accent-light);
    margin-bottom: 18px;
}

.lp-hero-badge .lp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lp-success);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    animation: lpBlink 2s ease-in-out infinite;
}

@keyframes lpBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.lp-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.lp-hero h1 .lp-gradient-text {
    background: var(--lp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-hero-lead {
    color: var(--lp-text-muted);
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 28px;
}

.lp-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.lp-stat-card {
    padding: 14px 16px;
    border-radius: var(--lp-radius-md);
    border: 1px solid var(--lp-border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.lp-stat-card strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.lp-stat-card span {
    font-size: 0.68rem;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-feature-list {
    display: grid;
    gap: 10px;
}

.lp-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--lp-radius-md);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.lp-feature-item:hover {
    border-color: var(--lp-border-hover);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.lp-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--lp-gradient-soft);
    color: var(--lp-accent-light);
    flex-shrink: 0;
}

.lp-feature-item p {
    font-size: 0.82rem;
    color: rgba(243, 240, 248, 0.88);
    line-height: 1.4;
}

.lp-terminal {
    margin-top: auto;
    padding-top: 28px;
    position: relative;
    z-index: 2;
}

.lp-terminal-window {
    border-radius: var(--lp-radius-lg);
    border: 1px solid var(--lp-border);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-shadow: var(--lp-shadow);
}

.lp-terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--lp-border);
    background: rgba(255, 255, 255, 0.03);
}

.lp-terminal-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.lp-terminal-bar span:nth-child(1) { background: #ef4444; }
.lp-terminal-bar span:nth-child(2) { background: #f59e0b; }
.lp-terminal-bar span:nth-child(3) { background: #10b981; }

.lp-terminal-body {
    padding: 14px 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.72rem;
    line-height: 1.7;
    color: #9ca3af;
    max-height: 120px;
    overflow: hidden;
}

.lp-terminal-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-terminal-line .ok { color: #34d399; }
.lp-terminal-line .warn { color: #fbbf24; }
.lp-terminal-line .info { color: #a78bfa; }

.lp-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background: linear-gradient(180deg, rgba(9, 8, 15, 0.98), rgba(6, 5, 11, 1));
}

.lp-form-card {
    width: 100%;
    max-width: 420px;
    padding: clamp(28px, 4vw, 40px);
    border-radius: var(--lp-radius-xl);
    border: 1px solid var(--lp-border);
    background: var(--lp-surface-strong);
    backdrop-filter: blur(24px);
    box-shadow: var(--lp-shadow);
    position: relative;
    overflow: hidden;
}

.lp-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lp-gradient);
}

.lp-form-header {
    margin-bottom: 28px;
}

.lp-form-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.lp-form-header p {
    color: var(--lp-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.lp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}

.lp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--lp-radius-md);
    margin-bottom: 20px;
    font-size: 0.84rem;
    line-height: 1.45;
    animation: lpSlideIn 0.35s ease;
}

@keyframes lpSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lp-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.lp-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #6ee7b7;
}

.lp-field {
    margin-bottom: 18px;
}

.lp-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}

.lp-input-wrap {
    position: relative;
}

.lp-input-wrap > i.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.95rem;
    transition: color 0.2s;
    pointer-events: none;
}

.lp-input-wrap input {
    width: 100%;
    padding: 14px 46px 14px 46px;
    border-radius: var(--lp-radius-md);
    border: 1px solid var(--lp-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--lp-text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lp-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.lp-input-wrap input:focus {
    outline: none;
    border-color: rgba(190, 24, 93, 0.55);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px var(--lp-accent-glow);
}

:root[data-portal="admin"] .lp-input-wrap input:focus {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 4px var(--lp-accent-glow);
}

.lp-input-wrap:focus-within > i.field-icon {
    color: var(--lp-accent-light);
}

.lp-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.lp-toggle-pass:hover {
    color: var(--lp-text);
    background: rgba(255, 255, 255, 0.06);
}

.lp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.lp-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--lp-text-muted);
}

.lp-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--lp-accent);
}

.lp-link {
    font-size: 0.82rem;
    color: var(--lp-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.lp-link:hover {
    color: var(--lp-accent-light);
}

.lp-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: var(--lp-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 14px 36px var(--lp-accent-glow);
}

.lp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px var(--lp-accent-glow);
}

.lp-submit:active {
    transform: translateY(0);
}

.lp-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: lpShine 4s ease-in-out infinite;
}

@keyframes lpShine {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.lp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lp-divider::before,
.lp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.lp-info-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--lp-radius-md);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.08);
}

:root[data-portal="admin"] .lp-info-box {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.08);
}

.lp-info-box i {
    color: var(--lp-violet);
    margin-top: 2px;
}

:root[data-portal="admin"] .lp-info-box i {
    color: var(--lp-accent-light);
}

.lp-info-box p {
    font-size: 0.76rem;
    color: var(--lp-text-muted);
    line-height: 1.5;
}

.lp-info-box strong {
    color: var(--lp-text);
}

.lp-form-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

.lp-form-footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.lp-form-footer a:hover {
    color: var(--lp-accent-light);
}

.lp-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 960px) {
    .lp-shell {
        grid-template-columns: 1fr;
    }

    .lp-hero {
        display: none;
    }

    .lp-mobile-brand {
        display: flex;
    }

    .lp-form-side {
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .lp-form-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .lp-stat-grid {
        grid-template-columns: 1fr;
    }
}

.lp-otp {
    text-align: center;
    letter-spacing: 0.45em;
    font-size: 1.35rem !important;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    padding-left: 18px !important;
}

.lp-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}

.lp-qr-wrap img {
    width: 190px;
    height: 190px;
    border-radius: var(--lp-radius-md);
    border: 1px solid var(--lp-border);
    background: #fff;
    padding: 10px;
    box-shadow: var(--lp-shadow);
}

.lp-secret {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--lp-radius-md);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    color: var(--lp-text-muted);
    word-break: break-all;
}

.lp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--lp-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.lp-back:hover {
    color: var(--lp-accent-light);
}

.lp-submit-danger {
    width: 100%;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 999px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fecaca;
    cursor: pointer;
    background: rgba(239, 68, 68, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
}

.lp-submit-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}
