.login-page,
.register-page,
.forgot-password-page,
.reset-password-page {
    background-color: var(--color-white);
}
/* Auth (shared) */
.auth {
    padding: 2.5rem 0;
}

.auth__main {
    padding: 0;
}

.auth-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-heading__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-black);
}

.auth-heading__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #737373;
    font-weight: 400;
}

.auth__panel {
    width: 100%;
    max-width: 23.75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.4375rem;
    padding: 1rem;
    box-shadow: 0 0.75rem 2rem rgba(29, 41, 57, 0.08), 0 0.125rem 0.5rem rgba(29, 41, 57, 0.06);
    border-radius: 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.9375rem;
}

.auth-form__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-field__control {
    background: var(--color-white);
    border: 1px solid #B7B7B7;
    border-radius: 0.3125rem;
    padding: 0.75rem 1.5rem 0.75rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-field__label {
    font-size: 0.8125rem;
    line-height: 1.0769230769;
    color: #B7B7B7;
    font-weight: 400;
}

.auth-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 500;
    color: #33383C;
    min-width: 0;
}

.auth-field__toggle {
    border: 0;
    background: transparent;
    color: #9BB0B6;
    padding: 0;
    width: 1.3125rem; /* 21px */
    height: 1.3125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-field__toggle:focus-visible {
    outline: 2px solid #1980FF;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.auth-field__toggle-icon {
    width: 1.3125rem;
    height: 1.3125rem;
    display: none;
}

.auth-field__toggle .auth-field__toggle-icon--show {
    display: block;
}

.auth-field__toggle.is-active .auth-field__toggle-icon--show {
    display: none;
}

.auth-field__toggle.is-active .auth-field__toggle-icon--hide {
    display: block;
}

.error-message {
    flex: 0 0 100%;
    margin-top: 0.4375rem; /* 7px */
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--color-red-primary);
}

.auth-input::placeholder {
    color: #9BB0B6;
    font-weight: 400;
}

.auth-field__error {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--color-red-primary);
}

.auth-field__control:has(.input-error) {
    border-color: var(--color-red-primary);
}

.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-check__box {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #B7B7B7;
    background: var(--color-white);
    display: inline-block;
    position: relative;
}

.auth-check input:checked + .auth-check__box {
    border-color: #1980FF;
    background: #1980FF;
}

.auth-check input:checked + .auth-check__box::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0;
    width: 0.3125rem;
    height: 0.5625rem;
    border: solid var(--color-white);
    border-width: 0 0.125rem 0.125rem 0;
    transform: rotate(45deg);
}

.auth-check__label {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.6923076923; /* 22px */
    color: #9BB0B6;
    font-weight: 400;
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 0.3125rem; /* 5px */
    padding: 0.5625rem 1rem; /* 9px */
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    font-weight: 600;
    cursor: pointer;
}

.auth-btn--primary {
    background: #1980FF;
    color: var(--color-white);
}

.auth-btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 1.1875rem; /* 19px */
}

/* Social (shared) */
.fb-gg {
    display: flex;
    flex-direction: column;
    gap: 1.1875rem; /* 19px */
}

.fb-gg .line {
    margin: 0;
    display: flex;
    align-items: flex-end;
    gap: 0.1875rem; /* 3px */
    color: #D9D9D9;
}

.fb-gg .line span {
    display: block;
}

.fb-gg .line span:first-child,
.fb-gg .line span:last-child {
    height: 1px;
    flex: 1;
    background: #D9D9D9;
}

.fb-gg .line .text {
    font-size: 0.6875rem; /* 11px */
    line-height: 1.5;
    font-weight: 500;
    color: #D9D9D9;
    white-space: nowrap;
}

.fb-gg-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1875rem; /* 19px */
}

.auth-social-btn {
    width: 6.4375rem; /* ~103px */
    height: 3.3125rem; /* 53px */
    border: 0.5px solid #B7B7B7;
    border-radius: 0.3125rem; /* 5px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    text-decoration: none;
}

.auth-social-btn__svg {
    width: 0.8125rem; /* 13px */
    height: 0.8125rem;
    display: block;
}

.auth-social-btn--facebook .auth-social-btn__svg {
    width: 0.875rem; /* 14px-ish visual match */
    height: 0.875rem;
}

.auth-social-btn:hover {
    background: #F8FAFC;
}

.auth-footnote {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    line-height: 1;
}

.auth-footnote--center {
    justify-content: center;
    gap: 0.5rem;
}

.auth-footnote__text {
    color: #737373;
    font-weight: 500;
}

.auth-link {
    text-decoration: none;
    font-weight: 500;
}

.auth-link--primary {
    color: #1980FF;
}

.auth-link--muted {
    color: #737373;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Password strength */
.auth-password-strength {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.auth-password-strength__bar {
    flex: 1;
    height: 0.1875rem; /* 3px */
    background: #E0E0E0;
    border-radius: 0.125rem;
    transition: background-color 0.3s;
}

.auth-password-strength__bar.weak {
    background: var(--color-red-primary);
}

.auth-password-strength__bar.medium {
    background: #FFA726;
}

.auth-password-strength__bar.strong {
    background: #66BB6A;
}

.auth-password-strength__text {
    display: block;
    font-size: 0.75rem; /* 12px */
    line-height: 1.5;
    margin-top: 0.25rem;
    font-weight: 500;
}

.auth-password-strength__text.weak {
    color: var(--color-red-primary);
}

.auth-password-strength__text.medium {
    color: #FFA726;
}

.auth-password-strength__text.strong {
    color: #66BB6A;
}
