/* Standalone public-auth surface. Do not apply these rules to the app shell. */
.crtester-auth {
    background: #f8f9fa;
    color: #172033;
    min-height: 100dvh;
}

.crtester-auth *,
.crtester-auth *::before,
.crtester-auth *::after {
    box-sizing: border-box;
}

.crtester-auth .auth-box {
    background: #f8f9fa;
    min-height: 100dvh;
}

.crtester-auth__brand {
    display: inline-block;
}

.crtester-auth__card {
    border: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(23, 32, 51, 0.075);
}

.crtester-auth__brand {
    color: #176b87;
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.crtester-auth__brand:hover {
    color: #0e526b;
}

.crtester-auth__intro {
    text-align: center;
}

.crtester-auth__intro h1 {
    color: #172033;
    font-size: clamp(1.8rem, 2.8vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0;
}

.crtester-auth__intro p {
    color: #5c687a;
    line-height: 1.55;
    margin: 0.75rem auto 2rem;
    max-width: 22rem;
}

.crtester-auth__form {
    display: grid;
    gap: 1.2rem;
}

.crtester-auth__field {
    min-width: 0;
}

.crtester-auth__field label,
.crtester-auth__label-row label {
    color: #263448;
    display: block;
    font-size: 0.9rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.crtester-auth__label-row {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.crtester-auth__label-row a,
.crtester-auth__footer-link a,
.crtester-auth__admin-note a {
    color: #116985;
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none;
}

.crtester-auth__label-row a:hover,
.crtester-auth__footer-link a:hover,
.crtester-auth__admin-note a:hover {
    color: #0a4e66;
    text-decoration: underline;
}

.crtester-auth__field input {
    background: #fff;
    border: 1px solid #aeb9c8;
    border-radius: 0.5rem;
    color: #172033;
    display: block;
    font: inherit;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    width: 100%;
}

.crtester-auth__password-wrap {
    position: relative;
}

.crtester-auth__password-wrap input {
    padding-right: 4.7rem;
}

.crtester-auth__password-toggle {
    background: transparent;
    border: 0;
    border-radius: 0.35rem;
    color: #116985;
    font-size: 0.8rem;
    font-weight: 700;
    min-height: 2.2rem;
    padding: 0.3rem 0.55rem;
    position: absolute;
    right: 0.35rem;
    top: 0.4rem;
}

.crtester-auth__error,
.crtester-auth__errors {
    color: #a11b33;
    font-size: 0.875rem;
    line-height: 1.4;
}

.crtester-auth__error {
    margin: 0.45rem 0 0;
}

.crtester-auth__error p {
    margin: 0;
}

.crtester-auth__errors {
    background: #fff1f3;
    border: 1px solid #efb5bf;
    border-radius: 0.5rem;
    padding: 0.75rem 0.9rem;
}

.crtester-auth__errors p {
    margin: 0;
}

.crtester-auth__help {
    color: #5c687a;
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: 0.5rem;
}

.crtester-auth__help ul {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}

.crtester-auth__submit {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin-top: 0.35rem;
    min-height: 3rem;
    width: 100%;
}

.crtester-auth__status {
    background: #edf8f2;
    border: 1px solid #a9ddbf;
    border-radius: 0.65rem;
    color: #1d5439;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto 1fr;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.crtester-auth__status p {
    margin: 0;
}

.crtester-auth__status-icon {
    align-items: center;
    background: #cdeed9;
    border-radius: 50%;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.crtester-auth__footer-link,
.crtester-auth__admin-note {
    color: #5c687a;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 1.5rem 0 0;
    text-align: center;
}

.crtester-auth :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb), 0.3) !important;
    outline: 2px solid var(--theme-primary) !important;
    outline-offset: 2px;
}

.crtester-auth :is(a, button, input, select, textarea, [tabindex]):focus:not(:focus-visible) {
    box-shadow: none !important;
    outline: 0;
}

@media (max-width: 767px) {
    .crtester-auth {
        overflow-x: hidden;
    }

    .crtester-auth .auth-box {
        align-items: flex-start !important;
        padding: 2rem 0;
    }

    .crtester-auth__label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
