/* Public landing + login — generic multi-business ERP */

:root {
    --se-black: #0b1f33;
    --se-ink: #0e2438;
    --se-panel: #123049;
    --se-line: rgba(148, 180, 210, 0.22);
    --se-gold: #2b6cb0;
    --se-gold-2: #3b82c4;
    --se-cream: #f4f7fa;
    --se-paper: #ffffff;
    --se-muted: #8aa0b5;
    --se-danger: #b42318;
}

html, body.se-gate {
    min-height: 100%;
    background: var(--se-black);
    color: #e8eef5;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

.se-gate a { color: var(--se-gold); }
.se-gate a:hover { color: var(--se-gold-2); }

.se-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--se-gold);
}

.se-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.se-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}
.se-brand strong {
    display: block;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
}
.se-brand span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--se-muted);
}

.se-btn-gold,
.se-gate .se-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    background: linear-gradient(180deg, #3b82c4, #1e4e8c);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(30, 78, 140, 0.28);
}
.se-btn-gold:hover {
    filter: brightness(1.06);
    color: #fff !important;
    text-decoration: none;
}
.se-btn-block { width: 100%; }

/* -------- Landing -------- */
.se-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(59, 130, 196, 0.16), transparent 50%),
        linear-gradient(180deg, #10263d 0%, #0b1f33 100%);
    padding: 20px 24px 16px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
}

.se-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

.se-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--se-line);
    color: var(--se-cream) !important;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
.se-ghost:hover { border-color: var(--se-gold); color: var(--se-gold) !important; text-decoration: none; }

.se-hero {
    max-width: 1120px;
    width: 100%;
    margin: 64px auto 40px;
}

.se-hero h1 {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #e8eef5;
}

.se-lead {
    max-width: 38rem;
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: #b7c6d6;
}

.se-cta-row { margin-top: 28px; }
.se-secure {
    margin: 14px 0 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--se-muted);
}

.se-modules {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--se-line);
    border: 1px solid var(--se-line);
}

.se-modules article {
    background: #0e2438;
    padding: 22px 20px 24px;
}

.se-modules span {
    display: block;
    font-size: 11px;
    color: var(--se-gold);
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.se-modules h2 {
    margin: 0 0 8px;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #e8eef5;
}

.se-modules p {
    margin: 0;
    color: #9eb1c4;
    font-size: 14px;
    line-height: 1.45;
}

.se-foot {
    max-width: 1120px;
    width: 100%;
    margin: auto auto 8px;
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    color: var(--se-muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* -------- Login -------- */
.se-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
}

.se-login-brand {
    background:
        radial-gradient(800px 400px at 0% 0%, rgba(59, 130, 196, 0.16), transparent 45%),
        #0b1f33;
    padding: 32px 40px 28px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--se-line);
}

.se-login-copy {
    margin-top: 72px;
    max-width: 28rem;
}

.se-login-copy h1 {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    color: #e8eef5;
}

.se-login-copy p {
    margin: 14px 0 0;
    color: #b7c6d6;
    font-size: 15px;
    line-height: 1.55;
}

.se-login-points {
    list-style: none;
    margin: auto 0 24px;
    padding: 24px 0 0;
    color: #c5d4e4;
    font-size: 14px;
}

.se-login-points li {
    padding: 8px 0;
    border-top: 1px solid rgba(148, 180, 210, 0.22);
    letter-spacing: 0.04em;
}

.se-login-note {
    margin: 0;
    font-size: 12px;
    color: var(--se-muted);
    letter-spacing: 0.04em;
}

.se-login-main {
    background: var(--se-cream);
    color: #102033;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.se-login-card {
    width: min(420px, 100%);
    background: var(--se-paper);
    border: 1px solid #d5dee8;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 50px rgba(20, 16, 8, 0.08);
}

.se-card-head h2 {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 32px;
    color: #102033;
}

.se-card-head p {
    margin: 6px 0 0;
    color: #5b6f82;
}

.se-card-head .se-kicker { color: #1e4e8c; }

.se-form { margin-top: 22px; }

.se-field {
    display: block;
    margin-bottom: 14px;
}

.se-field span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b6f82;
    margin-bottom: 6px;
}

.se-field span a {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: #1e4e8c;
}

.se-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #c5d0dc;
    background: #fff;
    color: #102033;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 2px;
    outline: none;
}

.se-field input:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.18);
}

.se-field.is-error input { border-color: var(--se-danger); }

.se-field-pass { position: relative; }
.se-field-pass input { padding-right: 72px; }
.se-eye {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border: 0;
    background: transparent;
    color: #1e4e8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    min-height: 32px;
}

.se-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5b6f82;
    margin: 8px 0 18px;
}
.se-remember input { accent-color: #2b6cb0; }

.se-error {
    color: var(--se-danger);
    font-size: 13px;
    margin: -8px 0 12px;
}

.se-alt {
    margin: 16px 0 0;
    text-align: center;
    color: #5b6f82;
    font-size: 13px;
}

.se-lang {
    display: block;
    margin-top: 18px;
    font-size: 12px;
    color: #5b6f82;
}
.se-lang span {
    display: block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.se-lang select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c5d0dc;
    background: #fff;
    color: #102033;
    font-size: 14px;
    padding: 6px 10px;
}

.se-card-foot {
    margin: 18px 0 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.se-card-foot a { color: #5b6f82; }

.se-demo { width: min(420px, 100%); margin-top: 16px; }
.se-demo h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.se-demo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.se-demo-grid a {
    border: 1px solid #c5d0dc;
    padding: 8px 10px;
    color: #102033;
    text-decoration: none;
    font-size: 12px;
}

@media (max-width: 900px) {
    .se-login { grid-template-columns: 1fr; }
    .se-login-brand {
        border-right: 0;
        border-bottom: 1px solid var(--se-line);
        padding: 18px 18px 20px;
    }
    .se-login-copy { margin-top: 18px; }
    .se-login-copy h1 { font-size: 32px; }
    .se-login-points { display: none; }
    .se-login-note { display: none; }
    .se-hero { margin: 36px auto 28px; }
    .se-modules { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .se-modules { grid-template-columns: 1fr; }
    .se-landing { padding: 16px 16px 12px; }
    .se-brand strong { font-size: 17px; }
    .se-top-nav .se-ghost { display: none; }
}
