/* Landing page — office server (warm charcoal + amber), Hub panel layout */

:root {
    --lp-slate: #1c1410;
    --lp-ink: #f8f1e7;
    --lp-muted: #d6c4b0;
    --lp-amber: #f59e0b;
    --lp-amber-dim: #d97706;
    --lp-ok: #86efac;
    --lp-danger: #fca5a5;
    --lp-font: "Sora", system-ui, sans-serif;
}

body.landing {
    font-family: var(--lp-font);
    background: var(--lp-slate);
    color: var(--lp-ink);
    overflow-x: hidden;
    min-height: 100vh;
}

.lp-hero {
    position: relative;
    min-height: calc(100vh - 3.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lp-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.lp-hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(28, 20, 16, 0.94) 0%, rgba(28, 20, 16, 0.78) 42%, rgba(28, 20, 16, 0.55) 100%),
        linear-gradient(0deg, rgba(28, 20, 16, 0.92) 0%, transparent 48%);
}

.lp-hero-scan {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(245, 158, 11, 0.045) 2px,
        rgba(245, 158, 11, 0.045) 3px
    );
}

.lp-logo-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(180deg, rgba(28, 20, 16, 0.9) 0%, rgba(28, 20, 16, 0.28) 72%, transparent 100%);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lp-logo-bar::after {
    content: "Server";
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1c1410;
    background: var(--lp-amber);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    line-height: 1;
}

.lp-logo-bar .cis-brand,
.lp-logo-bar .cis-version-badge {
    pointer-events: auto;
}

.lp-logo-bar .cis-version-badge:hover {
    color: #f8f1e7;
    border-color: var(--lp-amber);
}

.lp-panel-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 440px;
    padding: 5.5rem 1.25rem 1.5rem;
}

.lp-panel {
    background: rgba(28, 20, 16, 0.78);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.6rem;
    backdrop-filter: blur(10px);
    text-align: center;
    max-height: calc(100vh - 7rem);
    overflow: auto;
}

.lp-panel-logo {
    display: block;
    height: 52px;
    width: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.lp-panel-title {
    margin: 0 0 0.45rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lp-panel-sub,
.lp-login-hint {
    margin: 0 0 1.25rem;
    color: var(--lp-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.lp-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1c1410;
}

.lp-submit:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.lp-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lp-reset {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--lp-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.lp-reset:hover { color: var(--lp-amber); }

.lp-login-form {
    margin-top: 0.85rem;
    text-align: left;
}

.lp-field span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    color: var(--lp-muted);
}

.lp-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: var(--lp-ink);
    font: inherit;
}

.lp-login-hint--warn {
    color: var(--lp-danger);
    font-size: 0.85rem;
}

.lp-contact {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(245, 158, 11, 0.28);
    text-align: left;
}

.lp-contact-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.lp-contact-details {
    margin: 0 0 0.55rem;
    font-size: 0.85rem;
}

.lp-contact-details a {
    color: var(--lp-amber);
    text-decoration: none;
}

.lp-contact-details a:hover { text-decoration: underline; }
.lp-contact-details .sep { color: var(--lp-muted); margin: 0 0.35rem; }

.lp-contact-hint {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--lp-muted);
}

.lp-contact-form label {
    display: block;
    margin: 0.45rem 0 0.2rem;
    font-size: 0.75rem;
    color: var(--lp-muted);
}

.lp-contact-form .opt { opacity: 0.7; font-weight: 400; }

.lp-contact-form input,
.lp-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--lp-ink);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font: inherit;
    resize: vertical;
}

.lp-contact-form input:focus,
.lp-contact-form textarea:focus,
.lp-input:focus {
    outline: 2px solid rgba(245, 158, 11, 0.45);
    border-color: var(--lp-amber);
}

.lp-contact-form .lp-submit { margin-top: 0.85rem; }

.lp-contact-ok {
    margin: 0.75rem 0 0;
    color: var(--lp-ok);
    font-size: 0.88rem;
    font-weight: 600;
}

.lp-contact-err {
    margin: 0.65rem 0 0;
    color: var(--lp-danger);
    font-size: 0.85rem;
}

.lp-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    padding: 0.85rem 1rem 1.25rem;
    font-size: 0.72rem;
    color: var(--lp-muted);
    background: rgba(28, 20, 16, 0.96);
    position: relative;
    z-index: 2;
}

.lp-legal a {
    color: rgba(248, 241, 231, 0.82);
    text-decoration: none;
}

.lp-legal a:hover { color: var(--lp-amber); text-decoration: underline; }
.lp-legal .sep { color: rgba(255, 255, 255, 0.28); }

@media (max-width: 640px) {
    .lp-panel {
        max-height: none;
        padding: 1.5rem 1.15rem 1.25rem;
    }
}
