* {
    box-sizing: border-box;
}

:root {
    --navy: #0F4C81;
    --blue: #1E88E5;
    --gold: #d7b55d;
    --ice: #EAF4FC;
    --ice-2: #F0F7FC;
    --bg: #E2F4E8;
    --card: #ffffff;
    --text: #1F2937;
    --muted: #667085;
    --border: #DDE8F0;
    --success: #18794e;
    --danger: #b42318;
    --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);
}

.hidden {
    display: none !important;
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px clamp(16px, 4vw, 56px);
    background: linear-gradient(135deg, #0a2342 0%, var(--navy) 58%, #20825f 100%);
    color: #ffffff;
}

.public-brand,
.public-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-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    flex: 0 0 auto;
}

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

.brand-nurse {
    color: var(--gold);
}

.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: 8px 10px;
    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);
}

.reset-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.reset-card {
    width: min(880px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: auth-rise 0.65s ease both;
}

.reset-copy {
    padding: 28px;
    background: linear-gradient(160deg, var(--ice-2), #ffffff);
    border-right: 1px solid var(--border);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

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

.reset-copy p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.reset-preview {
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--ice-2);
    animation: image-float 5s ease-in-out infinite;
}

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

.reset-form {
    padding: 28px 24px;
    display: grid;
    gap: 14px;
}

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

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

input:focus {
    border-color: rgba(30, 136, 229, 0.6);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}

.password-row {
    position: relative;
}

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

.eye-button {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transform: translateY(-50%);
}

.eye-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;
}

.eye-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;
}

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

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

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

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

.primary-button,
.secondary-button {
    min-height: 42px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    cursor: pointer;
}

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

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

.message {
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
}

.message.error {
    color: var(--danger);
    background: rgba(180, 35, 24, 0.08);
}

.message.success {
    color: var(--success);
    background: rgba(24, 121, 78, 0.10);
}

.auth-footer {
    padding: 10px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

@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);
    }
}

@media (max-width: 720px) {
    .reset-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .public-nav {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        padding: 10px 12px;
    }

    .public-nav nav {
        justify-content: flex-end;
        width: auto;
        flex: 0 1 auto;
    }

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

    .reset-copy {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}
