* { box-sizing: border-box; }

body {
    display: grid;
    place-items: center;
    min-height: 100svh;
    margin: 0;
    padding: 1.5rem;
    background: #f2f6fb;
    color: #092744;
    font-family: Arial, Helvetica, sans-serif;
}

main {
    width: min(420px, 100%);
    padding: 3.5rem 2.25rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 40px rgb(9 39 68 / 9%);
}

.access-logo {
    display: block;
    width: 8rem;
    height: 8rem;
    max-width: 100%;
    margin: 0 auto 1rem;
    object-fit: contain;
}

h1 {
    margin: 0;
    color: #0059c9;
    font-size: 2rem;
    letter-spacing: -0.04em;
    text-align: center;
}

.subtitle {
    margin: 0.75rem 0 2.5rem;
    color: #60738b;
    text-align: center;
}

form, .field { display: grid; }
form { gap: 1.25rem; }
.field { gap: 0.5rem; }
label { font-size: 0.875rem; font-weight: 700; }

input, button { font: inherit; }

input {
    width: 100%;
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d4e1ef;
    border-radius: 0.5rem;
    background: white;
    color: inherit;
}

input::placeholder { color: #60738b; }
input:focus-visible { border-color: #0059c9; outline: 3px solid #d9eaff; }

button {
    padding: 0.85rem;
    border: 0;
    border-radius: 0.5rem;
    background: #0059c9;
    color: white;
    font-weight: 700;
}

button:disabled { cursor: not-allowed; }

.recovery {
    justify-self: end;
    padding: 0;
    background: transparent;
    color: #0059c9;
    font-size: 0.8rem;
}

.availability {
    margin: 0;
    color: #60738b;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

.request-account {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #d4e1ef;
}

.request-account summary {
    color: #0059c9;
    font-weight: 700;
    cursor: pointer;
}

.request-account[open] summary { margin-bottom: 1rem; }
main:has(.request-account[open]) .sign-in-form { display: none; }
.request-account form { margin-top: 1.25rem; }
.request-account .field small { text-align: left; }

.request-error {
    padding: 0.75rem;
    border: 1px solid #f0b7b7;
    border-radius: 0.5rem;
    background: #fff3f3;
    color: #8a2424;
    font-size: 0.875rem;
    line-height: 1.5;
}

.request-result { line-height: 1.6; text-align: center; }
.request-result h2 { font-size: 1.25rem; }
.request-result a { color: #0059c9; }

.recovery-link { color: #0059c9; font-weight: 700; text-align: center; }
.recovery-help { margin: 1rem 0 1.5rem; }
#password-reset-fields { display: grid; gap: 1.25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
button:disabled { opacity: 0.6; }

@media (max-width: 480px) {
    body { padding: 1rem; }
    main { padding: 2.5rem 1.5rem; }
}