:root {
    --bg-ink: #0f172a;
    --bg-surface: #e8f0ef;
    --bg-glow: #fde68a;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --line: #dbe4ea;
    --accent: #f97316;
    --accent-deep: #c2410c;
    --accent-soft: #ffedd5;
    --teal: #0f766e;
    --teal-soft: #ccfbf1;
    --danger-soft: #fee2e2;
    --danger-text: #b91c1c;
    --focus-ring: rgba(20, 184, 166, 0.25);
    --shadow-main: 0 30px 80px rgba(15, 23, 42, 0.22);
    --radius-lg: 28px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

.entry-page {
    margin: 0;
    min-height: 100vh;
    padding: clamp(14px, 3vw, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% 14%, rgba(249, 115, 22, 0.24), transparent 33%),
        radial-gradient(circle at 84% 84%, rgba(20, 184, 166, 0.17), transparent 30%),
        linear-gradient(160deg, #f4f7f7 0%, #e6f0ef 48%, #edf1f8 100%);
}

.entry-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(7px);
    animation: surface-rise 0.55s ease both;
}

.entry-brand {
    position: relative;
    background:
        linear-gradient(150deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 118, 110, 0.9) 58%, rgba(12, 74, 110, 0.9) 100%);
    color: #f8fafc;
    padding: clamp(26px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.entry-brand::before,
.entry-brand::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.entry-brand::before {
    width: 280px;
    height: 280px;
    top: -160px;
    right: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, transparent 62%);
}

.entry-brand::after {
    width: 220px;
    height: 220px;
    bottom: -130px;
    left: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.33) 0%, transparent 70%);
}

.entry-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: #bae6fd;
}

.entry-brand h1 {
    margin: 0;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    line-height: 1.24;
    max-width: 19ch;
}

.entry-lead {
    margin: 0;
    color: rgba(248, 250, 252, 0.88);
    line-height: 1.62;
    max-width: 55ch;
}

.brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.brand-points li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    line-height: 1.45;
}

.point-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
}

.status-chip {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    font-size: 0.84rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.15);
}

.entry-panel {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    padding: clamp(24px, 3.6vw, 38px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-header {
    display: grid;
    gap: 8px;
}

.panel-kicker {
    margin: 0;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 0.75rem;
}

.panel-header h2 {
    margin: 0;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.4rem, 2.1vw, 1.9rem);
    line-height: 1.28;
}

.panel-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.inline-alert {
    border: 1px solid #fecaca;
    background: var(--danger-soft);
    color: var(--danger-text);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    line-height: 1.45;
    font-weight: 600;
}

.entry-form {
    display: grid;
    gap: 14px;
}

.field-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #334155;
}

.input-wrap {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    min-height: 48px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.input-icon {
    justify-self: center;
    color: #64748b;
}

.input-wrap input {
    border: 0;
    outline: 0;
    width: 100%;
    min-width: 0;
    padding: 12px 6px;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--text-main);
    background: transparent;
}

.input-wrap input::placeholder {
    color: #94a3b8;
}

.toggle-password {
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0 12px;
    height: 100%;
    border-left: 1px solid var(--line);
}

.toggle-password:focus-visible,
.primary-btn:focus-visible,
.module-card:focus-visible,
.secondary-link:focus-visible {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.primary-btn {
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    min-height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(194, 65, 12, 0.27);
}

.hub-shell {
    grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
}

.metrics-grid {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-value {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.metric-label {
    color: #cbd5e1;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.secondary-link {
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    color: #f8fafc;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.2);
    transition: background-color 0.16s ease;
}

.secondary-link:hover {
    background: rgba(15, 23, 42, 0.38);
}

.module-grid {
    display: grid;
    gap: 14px;
}

.module-card {
    text-decoration: none;
    color: var(--text-main);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    position: relative;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    opacity: 0;
    transform: translateY(18px);
    animation: module-rise 0.52s ease forwards;
}

.module-card:nth-child(2) {
    animation-delay: 0.08s;
}

.module-card h3 {
    margin: 0 0 6px;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.02rem;
}

.module-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.93rem;
}

.module-action {
    grid-column: 1 / -1;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    margin-top: 2px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.module-kumes .module-icon {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.module-erp .module-icon {
    background: var(--teal-soft);
    color: var(--teal);
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #94a3b8;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.module-card.is-disabled {
    opacity: 1;
    animation: none;
    transform: none;
    border-style: dashed;
    background: var(--panel-soft);
    filter: grayscale(0.1);
    cursor: not-allowed;
}

.module-card.is-disabled .module-icon {
    background: #e2e8f0;
    color: #64748b;
}

.module-card.is-disabled .module-action {
    color: #64748b;
}

@keyframes surface-rise {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes module-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .entry-shell,
    .hub-shell {
        grid-template-columns: 1fr;
    }

    .entry-brand,
    .entry-panel {
        padding: clamp(20px, 5vw, 28px);
    }

    .status-chip,
    .secondary-link {
        margin-top: 6px;
    }
}

@media (max-width: 640px) {
    .entry-page {
        padding: 12px;
    }

    .entry-shell {
        border-radius: 20px;
    }

    .input-wrap {
        min-height: 46px;
    }

    .module-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .module-icon {
        width: 42px;
        height: 42px;
    }
}
