/* ATM-HRD shared theme */

:root {
    --navy: #092a43;
    --blue: #1261a0;
    --cyan: #2aa7c9;
    --amber: #f2b84b;
    --ink: #18232d;
    --muted: #687680;
    --line: #d9e3e9;
    --soft: #f5f8fa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}


/* =========================
   Header
   ========================= */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.nav {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
}

.brand strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
}

.brand span {
    font-size: 11px;
    color: var(--muted);
}


/* =========================
   Navigation
   ========================= */

nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4f5d68;
}

nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 6px;
    transition: .15s ease;
}

nav a svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

nav a:hover {
    color: var(--blue);
    background: #eef6fb;
}

nav a.active {
    color: var(--blue);
    background: #eaf4fa;
    font-weight: 650;
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
}


/* =========================
   Hero
   ========================= */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 78% 20%,
            #dff3ff 0,
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f8fbfd,
            #eef7fc
        );
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    min-height: 530px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
    padding: 65px 0;
}

.kicker {
    color: var(--blue);
    font-weight: 750;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -2.7px;
}

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

.actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 11px 17px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--navy);
}

.primary {
    background: var(--navy);
    color: white;
}

.secondary {
    color: var(--navy);
    background: white;
}


/* =========================
   Sections
   ========================= */

section {
    padding: 65px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    color: var(--navy);
    letter-spacing: -.6px;
}

.section-head h2 {
    font-size: 25px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}


/* =========================
   Cards
   ========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    min-height: 175px;
    transition: .15s;
}

.card:hover {
    border-color: #9db5c6;
    box-shadow: 0 8px 25px rgba(9, 42, 67, .06);
    transform: translateY(-2px);
}

.icon {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: #eaf5fc;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 25px;
}

.card h3 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: 16px;
}

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


/* =========================
   Notices
   ========================= */

.notice-area {
    background: var(--soft);
}

.notice-list {
    border-top: 1px solid var(--line);
}

.notice {
    display: grid;
    grid-template-columns: 105px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.date {
    font-size: 11px;
    color: var(--muted);
}

.notice-title {
    font-size: 13px;
    font-weight: 650;
}

.arrow {
    color: var(--blue);
    font-size: 18px;
}


/* =========================
   Stats
   ========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.stat {
    background: var(--navy);
    color: white;
    border-radius: 8px;
    padding: 25px;
}

.stat:nth-child(2) {
    background: var(--blue);
}

.stat:nth-child(3) {
    background: #167b92;
}

.stat b {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 7px;
}

.stat span {
    font-size: 12px;
    opacity: .85;
}


/* =========================
   Login
   ========================= */

.auth-page {
    background: #f5f8fa;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.login-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #092a43,
        #0c486c
    );
    color: #fff;
    display: flex;
    align-items: center;
}

.login-visual-content {
    width: min(600px, 80%);
    margin: auto;
}

.login-visual h1 {
    color: #fff;
}

.login-visual p {
    color: #c4d7e2;
    max-width: 480px;
    font-size: 16px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-box {
    width: min(410px, 100%);
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 55px;
}

.logo-row strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
}

.logo-row span {
    font-size: 11px;
    color: var(--muted);
}

.login-box h2 {
    margin: 0;
    color: var(--navy);
    font-size: 30px;
}

.subtitle {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 30px;
}

.login-box label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #43515c;
    margin: 18px 0 7px;
}

.login-box input[type=text],
.login-box input[type=password] {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 13px;
    background: #fff;
    outline: none;
}

.login-box input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18, 97, 160, .08);
}

.password-wrap {
    position: relative;
}

.password-wrap button {
    position: absolute;
    right: 8px;
    top: 7px;
    height: 32px;
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 25px;
    font-size: 12px;
}

.remember {
    display: flex !important;
    align-items: center;
    gap: 7px;
    color: var(--muted) !important;
    margin: 0 !important;
}

.remember input {
    width: 14px;
    height: 14px;
}

.login-options a {
    color: var(--blue);
}

.login-button {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.login-error {
    margin-top: 13px;
    text-align: center;
    color: #a33;
    font-size: 12px;
}

.login-note {
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}


/* =========================
   Footer
   ========================= */

footer {
    background: #061d2e;
    color: #b8c6d0;
    padding: 30px 0;
    font-size: 11px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner strong {
    color: white;
}


/* =========================
   Portal
   ========================= */

.portal {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 60px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    color: var(--blue);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.page-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.5px;
}

.welcome {
    color: var(--muted);
    font-size: 12px;
}

.welcome strong {
    color: var(--ink);
    font-weight: 650;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.portal-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
    min-height: 145px;
    transition: .15s;
}

.portal-card:hover {
    border-color: #9db5c6;
    box-shadow: 0 6px 18px rgba(9, 42, 67, .06);
    transform: translateY(-2px);
}

.card-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .12em;
    margin-bottom: 14px;
}

.portal-card h2 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 650;
}

.portal-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.card-action {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 850px) {

    nav {
        display: none;
    }

    .hero-inner,
    .login-page {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 55px 0 35px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
    }

    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 520px) {

    .container {
        width: calc(100% - 28px);
    }

    .cards,
    .stats {
        grid-template-columns: 1fr;
    }

    .notice {
        grid-template-columns: 1fr auto;
        gap: 4px 12px;
    }

    .date {
        grid-column: 1 / -1;
    }

    .footer-inner {
        flex-direction: column;
    }

    .portal {
        width: calc(100% - 28px);
        padding: 30px 0 45px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}
