/* Base */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f4f9;
    color: #1f2444;
    min-height: 100vh;
    line-height: 1.5;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
}

/* Brand bar */
.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #003399;
    padding: 18px 36px;
    color: #ffffff;
    flex-wrap: wrap;
    gap: 12px;
}

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

.brand-logo {
    height: 56px;
    width: auto;
    max-width: 100%;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-tag {
    font-size: 13px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Two-column layout */
.layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    padding: 64px 48px;
    align-items: start;
}

/* Hero column */
.hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.15;
    color: #003399;
    margin: 0;
    font-weight: 800;
}

.hero-lead {
    color: #4a4f6a;
    font-size: 16px;
    max-width: 540px;
    margin: 0;
}

.features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #2a2f4e;
}

.features .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e8edff;
    color: #003399;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-image {
    margin-top: 16px;
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Auth column */
.auth {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e5e7f0;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.login-card h2 {
    margin: 0 0 20px;
    color: #003399;
    font-size: 24px;
    font-weight: 700;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2a2f4e;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d3d8ea;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #003399;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}

.btn-submit {
    padding: 12px 20px;
    background-color: #003399;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.05s ease;
}

.btn-submit:hover {
    background-color: #002266;
}

.btn-submit:active {
    transform: translateY(1px);
}

/* Demo card */
.demo-card {
    background: #f5f7ff;
    border: 1px solid #d8dcec;
    border-radius: 14px;
    padding: 24px;
}

.demo-card h3 {
    margin: 0;
    color: #003399;
    font-size: 18px;
    font-weight: 700;
}

.demo-subhead {
    margin: 4px 0 16px;
    color: #5a5f7a;
    font-size: 13px;
}

.demo-row {
    background: #ffffff;
    border: 1px solid #e0e4f3;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.demo-row:first-of-type {
    margin-top: 0;
}

.demo-row:hover {
    border-color: #b9c0e2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.demo-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-pill {
    display: inline-block;
    padding: 4px 10px;
    background: #003399;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.demo-blurb {
    margin: 10px 0 14px;
    color: #4a4f6a;
    font-size: 13.5px;
}

.demo-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.demo-key {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7090;
    letter-spacing: 1px;
    min-width: 70px;
    font-weight: 600;
}

.demo-email {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 13.5px;
    color: #1f2444;
    background: #f0f3fb;
    padding: 3px 8px;
    border-radius: 6px;
}

.demo-pass-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-pass {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 14px;
    color: #1f2444;
    background: #f0f3fb;
    padding: 3px 8px;
    border-radius: 6px;
    min-width: 90px;
    display: inline-block;
}

.demo-icon-btn {
    padding: 4px 8px;
    border: 1px solid #d8dcec;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    color: #4a4f6a;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.demo-icon-btn:hover {
    border-color: #003399;
    color: #003399;
}

.btn-demo-fill {
    width: 100%;
    margin-top: 14px;
    padding: 10px 14px;
    background-color: #003399;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-demo-fill:hover {
    background-color: #002266;
}

/* Footer */
.footer {
    background-color: #e0e7ff;
    padding: 48px 36px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-section {
    margin: 0;
    text-align: left;
    min-width: 180px;
}

.footer-section h3 {
    margin: 0 0 14px;
    color: #003399;
    font-size: 15px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #003399;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.footer-logo img.small-logo {
    width: 220px;
    height: auto;
    max-width: 100%;
}

.footer-logo p {
    color: #5a5f7a;
    margin: 0;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 991px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 28px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-image {
        max-width: 100%;
    }

    .brand-bar {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .brand-tag {
        display: none;
    }

    .layout {
        padding: 28px 18px;
        gap: 32px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .login-card,
    .demo-card {
        padding: 20px;
    }

    .demo-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .demo-key {
        min-width: 0;
    }

    .footer {
        padding: 32px 18px;
    }

    .footer-content {
        gap: 16px;
    }
}
