/* The login form (Components/Pages/Users/Login.razor): one quiet column on ivory, in the brand green. Every rule is under
   .si-page so nothing here reaches another page. The site header is fixed (35px down, 60px tall), so the column starts
   below it. */

.si-page {
    --si-ink: #10231B;
    --si-muted: var(--serden-text-secondary, #526159);
    --si-line: #D9D6CE;
    --si-error: #B42318;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 168px 16px 96px;
    background-color: var(--serden-ivory, #F7F4ED);
    color: var(--si-ink);
}

.si-page .si-card {
    width: 100%;
    max-width: 440px;
}

.si-page .si-head {
    margin-bottom: 36px;
    text-align: center;
}

.si-page .si-head h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4.4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--si-ink);
}

.si-page .si-head p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--si-muted);
}

/* ------------------------------------------------------------------ fields */

.si-page .si-field {
    margin-bottom: 22px;
}

/* default.css indents every label by 5px for the site's pill-shaped fields; these fields are square-cornered, so the
   labels line up with their left edge. */
.si-page .si-field label {
    display: block;
    margin: 0 0 8px;
    padding-left: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--si-ink);
}

.si-page .si-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.si-page .si-label-row label {
    margin: 0;
}

.si-page .si-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--si-line);
    border-radius: 10px;
    background-color: #fff;
    font-size: 16px;
    color: var(--si-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.si-page .si-input::placeholder {
    color: #8A938D;
}

.si-page .si-input:focus {
    border-color: var(--serden-evergreen);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--serden-evergreen-rgb), 0.14);
}

.si-page .si-input.invalid {
    border-color: var(--si-error);
}

.si-page .si-error {
    margin-top: 6px;
    font-size: 14px;
    color: var(--si-error);
}

.si-page .si-password {
    position: relative;
}

.si-page .si-password .si-input {
    padding-right: 54px;
}

.si-page .si-reveal {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 17px;
    color: var(--si-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.si-page .si-reveal:hover {
    color: var(--serden-evergreen);
}

.si-page .si-reveal:focus-visible {
    outline: 2px solid var(--serden-evergreen);
    outline-offset: 0;
}

.si-page .si-link,
.si-page .si-terms a,
.si-page .si-foot a {
    color: var(--serden-evergreen);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.si-page .si-link {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.si-page .si-link:hover,
.si-page .si-terms a:hover,
.si-page .si-foot a:hover {
    color: var(--serden-evergreen-hover);
}

/* ----------------------------------------------------------------- buttons */

.si-page .si-button {
    display: block;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background-color: var(--serden-evergreen);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.15s ease;
}

.si-page .si-button:hover {
    background-color: var(--serden-evergreen-hover);
}

.si-page .si-button:focus-visible {
    outline: 3px solid rgba(var(--serden-evergreen-rgb), 0.35);
    outline-offset: 2px;
}

.si-page .si-button--secondary {
    height: 46px;
    margin-top: 0;
    border: 1px solid var(--serden-evergreen);
    background-color: #fff;
    font-size: 15px;
    color: var(--serden-evergreen);
}

.si-page .si-button--secondary:hover {
    background-color: rgba(var(--serden-evergreen-rgb), 0.06);
}

/* -------------------------------------------------------------- small text */

.si-page .si-terms {
    margin: 22px 0 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: var(--si-muted);
}

.si-page .si-terms a {
    white-space: nowrap;
}

.si-page .si-foot {
    margin: 36px 0 0;
    font-size: 16px;
    text-align: center;
    color: var(--si-muted);
}

.si-page .si-foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    font-weight: 700;
}

.si-page .si-foot a i {
    font-size: 12px;
}

/* ---------------------------------------------------- messages and resend */

.si-page .si-alert {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #F3C4BE;
    border-radius: 10px;
    background-color: #FEF3F2;
    font-size: 15px;
    line-height: 1.5;
    color: #7A271A;
}

.si-page .si-alert > i {
    margin-top: 3px;
    color: var(--si-error);
}

.si-page .si-alert p {
    margin: 0;
}

.si-page .si-alert p + p {
    margin-top: 8px;
}

.si-page .si-alert .si-alert-ok {
    color: #05603A;
}

.si-page .si-panel {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--si-line);
    border-radius: 12px;
    background-color: #fff;
}

.si-page .si-panel h2 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
    color: var(--si-ink);
}

.si-page .si-panel .si-field {
    margin-bottom: 14px;
}

.si-page .si-panel-status {
    margin: 12px 0 0;
    font-size: 14px;
}

.si-page .si-panel-status.is-ok {
    color: #05603A;
}

.si-page .si-panel-status.is-error {
    color: var(--si-error);
}

@media (max-width: 575.98px) {
    .si-page {
        padding: 128px 16px 72px;
    }

    .si-page .si-head {
        margin-bottom: 28px;
    }

    .si-page .si-head p {
        font-size: 16px;
    }
}
