:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f3f6fb;
    color: #18283f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 32px 24px;
    background: #f3f6fb;
}

.password-card {
    width: 100%;
    max-width: 480px;
    padding: 36px;
    border: 1px solid #dde5ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(30, 64, 110, 0.09);
}

.brand { text-align: center; margin-bottom: 24px; }
.brand-logo {
    display: block;
    width: 168px;
    height: 168px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 4px;
}
.brand span {
    display: block;
    color: #617188;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

h1 { font-size: 26px; line-height: 1.3; margin: 0 0 12px; color: #14253d; }
p { font-size: 14px; line-height: 1.7; color: #4e6078; }
label { display: block; font-size: 13px; font-weight: 700; margin: 20px 0 8px; }

input {
    width: 100%;
    padding: 13px;
    border: 1px solid #8494a8;
    background: #ffffff;
    border-radius: 9px;
    color: #18283f;
    font-size: 16px;
}
input:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid #176fd1;
    outline-offset: 3px;
}

button {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: 0;
    border-radius: 9px;
    background: #176fd1;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s;
}
button:hover:not(:disabled) { background: #145db0; }
button:disabled { opacity: 0.6; cursor: wait; }

#password-link-status {
    border: 1px solid #a9c7e7;
    border-radius: 9px;
    padding: 13px 14px;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    color: #26476b;
    background: #edf5ff;
}
#password-link-status[data-state=error] {
    border-color: #efb6ae;
    color: #b42318;
    background: #fff4f2;
}
#password-link-status[data-state=success] {
    border-color: #98d4b5;
    color: #157348;
    background: #effaf4;
}

.hint, .footnote { font-size: 12px; color: #617188; }
#request-link-panel { margin-top: 20px; padding-top: 4px; }
#request-link-status {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #a9c7e7;
    border-radius: 9px;
    background: #edf5ff;
    color: #26476b;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
#request-link-status[data-state=error] { border-color: #efb6ae; color: #b42318; background: #fff4f2; }
#request-link-status[data-state=success] { border-color: #98d4b5; color: #157348; background: #effaf4; }
.login-link {
    display: block;
    text-align: center;
    color: #1767be;
    font-weight: 600;
    margin-top: 20px;
    padding: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.login-link:hover { color: #124f93; }
.footnote { margin-bottom: 0; padding-top: 16px; border-top: 1px solid #e8edf4; }
[hidden] { display: none !important; }

@media (max-width: 500px) {
    body { padding: 20px 16px; }
    .password-card { padding: 26px 24px; border-radius: 16px; }
    .brand-logo { width: 148px; height: 148px; }
    h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    button { transition: none; }
}
