* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(10, 80, 160, 0.12), transparent 32%),
        linear-gradient(135deg, #f7f9fc, #e7edf5);
    color: #16324f;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.92);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    width: 150px;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 0;
}

.nav-links li {
    margin-left: 15px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #27496d;
    padding: 10px;
    font-weight: 600;
}

.nav-links .dropdown > a::after {
    content: "\25BC";
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14);
    list-style: none;
    padding: 0;
    top: 100%;
    left: 0;
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    min-width: 220px;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content li a {
    color: #1b2d4d;
    display: block;
    text-decoration: none;
    padding: 12px 14px;
}

.dropdown-content li a:hover {
    background-color: #f4f8fc;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.cta {
    background-color: #0b5ed7;
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(11, 94, 215, 0.18);
}

.flash-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 118px auto 0;
}

.flash {
    display: grid;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d7e2ee;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 16px 40px rgba(28, 48, 78, 0.08);
}

.flash .ok {
    color: #146c43;
}

.flash .err {
    color: #b42318;
}

.login-content {
    flex: 1;
    padding: 24px 20px 56px;
}

.login-container {
    width: min(1120px, 100%);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.login-intro {
    padding: 24px 10px 24px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(11, 94, 215, 0.1);
    color: #0b4f9c;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-intro h1 {
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 18px;
    color: #0f2740;
}

.intro-copy {
    max-width: 580px;
    margin-bottom: 24px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #49627f;
}

.intro-points {
    list-style: none;
    display: grid;
    gap: 14px;
    color: #28445f;
}

.intro-points li {
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.intro-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5ed7, #4f8cff);
}

.login-box {
    background: rgba(255, 255, 255, 0.94);
    padding: 34px;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(24, 52, 82, 0.14);
    border: 1px solid rgba(215, 226, 238, 0.9);
}

.form-kicker {
    margin-bottom: 10px;
    color: #0b5ed7;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-box h2 {
    margin-bottom: 10px;
    color: #102a43;
    font-size: 2rem;
}

.form-copy {
    margin-bottom: 22px;
    color: #5d7288;
    line-height: 1.6;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #27496d;
    font-weight: 700;
    font-size: 0.95rem;
}

.login-box input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #cad6e2;
    border-radius: 14px;
    font-size: 1rem;
    background: #fbfdff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-box input:focus {
    outline: none;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 0 !important;
    background: transparent !important;
    color: #526579 !important;
    font-size: 16px !important;
    line-height: 1;
    cursor: pointer;
}
.password-toggle:hover { color: #123b58 !important; }
.password-toggle svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; }
.password-toggle:focus-visible { outline: 2px solid #0b5ed7; outline-offset: 2px; border-radius: 5px; }

.login-box button {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: linear-gradient(135deg, #0b5ed7, #327eea);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 14px 28px rgba(11, 94, 215, 0.2);
}

.login-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.login-links a {
    color: #0b5ed7;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    header {
        padding: 16px;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 6px;
    }

    .flash-wrap {
        width: calc(100% - 24px);
        margin-top: 112px;
    }

    .login-content {
        padding: 18px 12px 36px;
    }

    .login-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 18px;
    }

    .login-intro {
        padding: 0;
    }

    .login-box {
        padding: 24px 20px;
    }

    .login-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
