:root {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #18312c;
    background: #f5f8f7;
    font-synthesis: none;
    color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
.sign-in {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.brand { display: block; object-fit: contain; margin-bottom: 30px; }
.sign-in-card {
    width: 100%;
    max-width: 428px;
    padding: 38px;
    background: #fff;
    border: 1px solid #e2eae6;
    border-radius: 20px;
    box-shadow: 0 16px 48px #18312c08, 0 2px 6px #18312c03;
}
h1 { margin: 0 0 10px; font-size: 28px; font-weight: 650; letter-spacing: -.7px; }
.intro { margin: 0 0 30px; color: #64736e; font-size: 14px; line-height: 1.6; }
.field { margin-bottom: 22px; }
label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
input:not([type="hidden"]) {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #cfdad5;
    border-radius: 9px;
    background: #fff;
    color: #18312c;
    font-size: 16px;
    outline: none;
}
input::placeholder { color: #85928d; }
input:focus { border-color: #168365; box-shadow: 0 0 0 3px #16836518; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
#toggle-password {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 44px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #687d74;
    cursor: pointer;
}
#toggle-password:hover { color: #126b51; background: #f0f7f3; }
button:focus-visible { outline: 3px solid #8dcab4; outline-offset: 3px; }
.submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 49px;
    margin-top: 7px;
    border: 0;
    border-radius: 9px;
    background: #137c5c;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.submit:hover { background: #0d674b; }
.submit:disabled { opacity: .75; cursor: wait; }
.error {
    margin: 0 0 24px;
    padding: 12px 14px;
    background: #fff3f2;
    border: 1px solid #f1cbc6;
    border-radius: 9px;
    color: #a52d28;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.spinner { width: 17px; height: 17px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 420px) {
    .sign-in { padding: 28px 16px; }
    .sign-in-card { padding: 28px 24px; }
    .brand { margin-bottom: 24px; }
}
