* {
    box-sizing: border-box;
}

:root {
    --navy: #0F4C81;
    --blue: #1E88E5;
    --ice: #EAF4FC;
    --ice-2: #F0F7FC;
    --bg: #E2F4E8;
    --card: #ffffff;
    --text: #1F2937;
    --muted: #667085;
    --border: #DDE8F0;
    --shadow: 0 18px 34px rgba(11, 31, 58, 0.12);
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.06), transparent 30%),
        linear-gradient(315deg, rgba(31, 166, 122, 0.30), transparent 42%),
        var(--bg);
    color: var(--text);
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px clamp(10px, 2vw, 24px);
    background: linear-gradient(135deg, #0a2342 0%, #0F4C81 58%, #20825f 100%);
    color: #ffffff;
}

.public-brand,
.public-nav nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-nurse {
    color: #d7b55d;
}

.public-nav nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.public-nav nav::-webkit-scrollbar {
    display: none;
}

.public-nav nav a {
    padding: 7px 9px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: clamp(12px, 2.4vw, 15px);
}

.public-nav nav a:hover,
.public-nav nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
}

.auth-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.auth-card {
    width: min(960px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: auth-rise 0.65s ease both;
}

.auth-left {
    background: linear-gradient(160deg, var(--ice-2), #ffffff);
    padding: 16px 16px 0;
    border-right: 1px solid var(--border);
}

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

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--navy);
    flex: 0 0 auto;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    color: var(--navy);
}

.brand p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.left-content {
    padding: 12px 2px 0;
}

.left-content h2 {
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.12;
    color: var(--navy);
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

.feature-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    flex: 0 0 auto;
}

.preview {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--ice-2);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.preview {
    animation: image-float 5s ease-in-out infinite;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes image-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.auth-right {
    padding: 18px 14px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.auth-right h2 {
    margin: 0;
    font-size: 25px;
    color: var(--navy);
}

.form {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

.field span {
    display: block;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 6px;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 10px;
    font: inherit;
    outline: none;
}

input:focus {
    border-color: rgba(26, 115, 232, 0.55);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.10);
}

.password-row {
    position: relative;
    display: block;
    align-items: center;
}

.password-row input {
    padding-right: 48px;
}

.primary-button,
.pill-button {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 900;
}

.primary-button {
    padding: 12px 18px;
    background: var(--navy);
    color: #ffffff;
}

.pill-button {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    color: var(--navy);
    border: 0;
    font-size: 0;
}

.pill-button::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    margin: auto;
    border: 2px solid currentColor;
    border-radius: 75% 15%;
    transform: rotate(45deg);
    transition: transform 160ms ease, border-radius 160ms ease;
}

.pill-button::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: width 160ms ease, height 160ms ease, opacity 160ms ease;
}

.pill-button:not(.is-password-visible)::before {
    border-radius: 60% 40%;
    transform: rotate(45deg) scaleX(0.82);
}

.pill-button:not(.is-password-visible)::after {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pill-button.is-password-visible::before {
    transform: rotate(45deg) scale(1.04);
}

.pill-button.is-password-visible::after {
    width: 7px;
    height: 7px;
}

.error {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(180, 35, 24, 0.25);
    background: rgba(180, 35, 24, 0.08);
    color: #7a271a;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

.links {
    margin-top: 6px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 800;
}

.links a {
    color: var(--navy);
    text-decoration: none;
}

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

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
    .auth-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .left-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 620px) {
    .public-nav {
        align-items: center;
        flex-direction: row;
    }
    .public-nav nav {
        justify-content: flex-end;
        flex: 0 1 auto;
    }

    .public-nav nav a {
        padding: 7px 8px;
        font-size: 13px;
    }
}

.auth-footer {
    padding: 10px 14px 18px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
}
