@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --navy: #071426;
    --navy-2: #0d1e35;
    --blue: #1696ff;
    --blue-soft: #e9f5ff;
    --text: #152236;
    --muted: #6a778a;
    --line: #dfe7ef;
    --panel: #ffffff;
    --bg: #f4f7fb;
    --success: #0f9d68;
    --shadow: 0 20px 50px rgba(7, 20, 38, .10);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a { color: inherit; }

.login-page {
    min-height: 100vh;
    background: var(--navy);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr);
}

.brand-panel {
    padding: 64px clamp(40px, 7vw, 110px);
    color: white;
    background:
        radial-gradient(circle at 20% 20%, rgba(22,150,255,.28), transparent 34%),
        linear-gradient(145deg, #071426 0%, #0d203a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--blue);
    display: inline-grid;
    place-items: center;
    color: white;
    font-size: 26px;
    font-weight: 700;
    box-shadow: 0 16px 35px rgba(22,150,255,.30);
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 19px;
    flex: 0 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 700;
}

.brand-panel h1 {
    margin: 0 0 22px;
    max-width: 700px;
    font-size: clamp(42px, 5vw, 72px);
    letter-spacing: -.05em;
    line-height: 1.02;
}

.brand-panel p {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.72);
}

.brand-footer {
    color: rgba(255,255,255,.45);
    font-size: 13px;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 40px;
    background: #f8fafc;
}

.login-card {
    width: min(440px, 100%);
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 42px;
    box-shadow: var(--shadow);
}

.login-card h2 {
    font-size: 32px;
    margin: 0 0 8px;
    letter-spacing: -.03em;
}

.muted { color: var(--muted); margin-top: 0; margin-bottom: 28px; }

.login-card label {
    display: block;
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    outline: none;
    transition: .2s ease;
}

.login-card input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(22,150,255,.10);
}

.password-wrap { position: relative; }

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
}

.primary-btn {
    width: 100%;
    height: 52px;
    margin-top: 24px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(22,150,255,.25);
}

.alert {
    margin: 18px 0;
    padding: 13px 14px;
    border-radius: 10px;
    background: #fff0f0;
    color: #a22;
    font-size: 14px;
}

.security-note {
    margin: 16px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.mobile-brand { display: none; }

.topbar {
    height: 78px;
    padding: 0 clamp(22px, 5vw, 72px);
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-lockup > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-lockup strong { font-size: 18px; }
.logo-lockup small { color: rgba(255,255,255,.55); }

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-copy {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 13px;
}

.user-copy span { color: rgba(255,255,255,.55); font-size: 11px; margin-top: 4px; }

.logout-link {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
}

.dashboard-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 48px;
}

.hero { margin-bottom: 34px; }

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -.045em;
}

.hero p { margin: 0; color: var(--muted); font-size: 17px; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.module-card {
    min-height: 260px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(7,20,38,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.module-card:not(.is-disabled):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 28px;
}

.module-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.module-heading h2 { margin: 0; font-size: 21px; }

.status {
    white-space: nowrap;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.status.active { background: #e7f8f1; color: var(--success); }
.status.soon { background: #f0f2f5; color: #7a8492; }

.module-content p {
    color: var(--muted);
    line-height: 1.6;
    margin: 12px 0 24px;
}

.module-link {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--blue);
}

.module-link.disabled { color: #9aa4b1; }

.is-disabled { opacity: .68; }

.notice-panel {
    margin-top: 24px;
    padding: 24px 26px;
    border-radius: 18px;
    background: var(--navy);
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.notice-panel p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.62);
    line-height: 1.6;
}

.notice-panel > span {
    font-size: 12px;
    color: rgba(255,255,255,.45);
}

.site-footer {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 34px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 860px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 22px; }
    .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
    .module-grid { grid-template-columns: 1fr; }
    .user-copy { display: none; }
}

@media (max-width: 520px) {
    .login-card { padding: 28px 22px; border-radius: 18px; }
    .dashboard-shell { width: min(100% - 28px, 1240px); padding-top: 45px; }
    .topbar { padding: 0 16px; }
    .notice-panel { align-items: flex-start; flex-direction: column; }
}
