/* Shared across the Access-Level auth pages (login / forgot-password /
   reset-password) -- things that aren't specific to any one page's layout. */

/* Inter + Playfair Display, same as the dashboards (see typography.css). */
@import url("../typography.css");

.form-status,
.form-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.form-status {
    background: rgba(20, 148, 71, 0.15);
    border: 1px solid rgba(20, 148, 71, 0.5);
    color: #b9f0c9;
}

.form-error {
    background: rgba(168, 15, 15, 0.15);
    border: 1px solid rgba(168, 15, 15, 0.6);
    color: #ffb3b3;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #ff8a8a;
    font-size: 10px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 22px;
}

.auth-links label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #bdb8b3;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.auth-links input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #9f2529;
    cursor: pointer;
}

.auth-links a {
    color: #bdb8b3;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.auth-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-back-link {
    display: inline-block;
    margin-top: 20px;
    color: #aaa;
    font-size: 11px;
    text-decoration: none;
}

.auth-back-link:hover {
    color: #fff;
}

/* Password visibility toggle, sitting inside a relatively-positioned
   .input-group next to a password field. It spans the full height of the
   input group (label is absolutely positioned on every auth page, so the
   group height == the input height) and centres the icon, keeping it
   aligned regardless of the input's height. */
.input-group.has-toggle input {
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: #a0988f;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.toggle-password:hover {
    color: #fff;
}

/* The login pages' close (X) button removes its outline and had no other
   focus state, so a keyboard user could not see it was focused. */
.close-btn:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 3px;
}
