/* объявляй.рф — авторизация и подтверждение email, версия 4 */
.auth-body main {
    overflow: hidden;
}

.auth-page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 170px);
    padding: clamp(34px, 5vw, 76px) 16px;
    isolation: isolate;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(16px);
    opacity: .55;
    pointer-events: none;
}
.auth-page::before {
    top: 5%;
    left: -170px;
    background: radial-gradient(circle, rgba(123, 33, 72, .19), rgba(123, 33, 72, 0) 70%);
}
.auth-page::after {
    right: -180px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(109, 58, 178, .18), rgba(109, 58, 178, 0) 70%);
}

.auth-center-shell {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(390px, 1.08fr);
    width: min(100%, 1050px);
    margin-inline: auto;
    border: 1px solid rgba(123, 33, 72, .13);
    border-radius: 30px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 30px 90px rgba(48, 34, 51, .14);
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.auth-register-shell {
    width: min(100%, 1120px);
    grid-template-columns: minmax(300px, .8fr) minmax(500px, 1.2fr);
}

.auth-info-card,
.auth-form-card {
    min-width: 0;
    padding: clamp(28px, 4vw, 50px);
}
.auth-info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(123, 33, 72, .98), rgba(88, 34, 92, .97) 54%, rgba(76, 48, 139, .97)),
        #7b2148;
}
.auth-info-card::selection { background: rgba(255,255,255,.25); }
.auth-mini-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}
.auth-mini-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.16));
}
.auth-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #a46c8c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.auth-info-card .auth-kicker { color: rgba(255,255,255,.72); }
.auth-info-card h1,
.auth-form-heading h2,
.auth-message-card h1 {
    margin: 0;
    font-family: "Geologica", "Onest", sans-serif;
    letter-spacing: -.035em;
}
.auth-info-card h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.08;
}
.auth-info-card > p {
    max-width: 520px;
    margin: 18px auto 0;
    color: rgba(255,255,255,.76);
    line-height: 1.68;
}
.auth-benefit-list {
    display: grid;
    gap: 13px;
    margin-top: 30px;
}
.auth-benefit-list > div {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 17px;
    text-align: left;
    background: rgba(255,255,255,.075);
}
.auth-benefit-list > div > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    color: #fff;
    font-weight: 800;
    background: rgba(255,255,255,.13);
}
.auth-benefit-list strong,
.auth-benefit-list small { display: block; }
.auth-benefit-list strong { font-size: 14px; }
.auth-benefit-list small {
    margin-top: 3px;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    line-height: 1.45;
}
.auth-security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 13px 15px;
    border-radius: 15px;
    color: rgba(255,255,255,.76);
    background: rgba(20,10,28,.18);
    text-align: left;
}
.auth-security-note p { margin: 0; font-size: 12px; line-height: 1.5; }

.auth-form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,.96);
    box-shadow: none;
}
.auth-form-heading {
    margin-bottom: 25px;
    text-align: center;
}
.auth-form-heading h2 { font-size: clamp(29px, 3vw, 39px); color: #2b222e; }
.auth-form-heading p {
    max-width: 530px;
    margin: 10px auto 0;
    color: #746a78;
    line-height: 1.6;
}
.auth-error-list { display: grid; gap: 8px; margin-bottom: 18px; }
.auth-error-list .flash { width: 100%; margin: 0; padding: 12px 14px; box-shadow: none; }

.auth-form { gap: 17px; }
.auth-form .form-group { margin: 0; }
.auth-form .form-group > label,
.auth-role-fieldset legend {
    display: block;
    margin-bottom: 8px;
    color: #3f3542;
    font-size: 13px;
    font-weight: 750;
}
.auth-label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.auth-label-row label { margin: 0; color: #3f3542; font-size: 13px; font-weight: 750; }
.auth-label-row span { color: #9a909e; font-size: 11px; }
.auth-input-wrap {
    position: relative;
}
.auth-input-wrap .input {
    width: 100%;
    height: 54px;
    padding-left: 48px;
    border-radius: 15px;
}
.auth-password-wrap .input { padding-right: 90px; }
.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 22px;
    color: #8d7b8b;
    font-size: 12px;
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}
.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 3;
    padding: 7px 8px;
    border: 0;
    color: #7b2148;
    background: transparent;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transform: translateY(-50%);
}
.auth-password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.auth-role-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.auth-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-role-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 22px;
    gap: 11px;
    align-items: center;
    min-height: 86px;
    padding: 14px;
    border: 1px solid #ded6e0;
    border-radius: 17px;
    background: #fcfbfd;
    cursor: pointer;
    transition: .18s ease;
}
.auth-role-card:hover { border-color: rgba(123,33,72,.35); transform: translateY(-1px); }
.auth-role-card:has(input:checked) {
    border-color: rgba(123,33,72,.62);
    background: linear-gradient(135deg, rgba(123,33,72,.065), rgba(109,58,178,.055));
    box-shadow: 0 0 0 3px rgba(123,33,72,.07);
}
.auth-role-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.auth-role-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #f1ebf2;
    font-size: 18px;
}
.auth-role-card strong,
.auth-role-card small { display: block; }
.auth-role-card strong { color: #342a37; font-size: 14px; }
.auth-role-card small { margin-top: 3px; color: #817687; font-size: 11px; line-height: 1.35; }
.auth-role-card i {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border: 1px solid #d9d0db;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: 11px;
    font-style: normal;
}
.auth-role-card:has(input:checked) i { color: #fff; border-color: #7b2148; background: #7b2148; }

.password-meter { margin-top: -6px; }
.password-meter > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.password-meter i { height: 4px; border-radius: 99px; background: #e6e0e7; }
.password-meter span { display: block; margin-top: 7px; color: #8a7f8d; font-size: 11px; }
.password-meter[data-level="1"] i:nth-child(-n+1) { background: #c54a5b; }
.password-meter[data-level="2"] i:nth-child(-n+2) { background: #d7902d; }
.password-meter[data-level="3"] i:nth-child(-n+3) { background: #608e75; }
.password-meter[data-level="4"] i:nth-child(-n+4) { background: #2d8c65; }
.password-match { margin-top: -8px; color: #b8384d; font-size: 11px; }
.password-match.is-valid { color: #2d8c65; }

.auth-consents { display: grid; gap: 10px; }
.auth-consent {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0,1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 13px;
    border: 1px solid #e2dce4;
    border-radius: 14px;
    color: #625768;
    background: #fbfafc;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}
.auth-consent input { position: absolute; opacity: 0; }
.auth-checkmark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #cfc4d1;
    border-radius: 7px;
    color: transparent;
    background: #fff;
    font-weight: 800;
}
.auth-consent:has(input:checked) { border-color: rgba(123,33,72,.3); background: #fff8fc; }
.auth-consent input:checked + .auth-checkmark { color: #fff; border-color: #7b2148; background: #7b2148; }
.auth-consent a { color: #7b2148; font-weight: 700; }

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    margin-top: 2px;
    border-radius: 15px;
    font-size: 14px;
}
.auth-submit b { font-size: 18px; }
.auth-submit.is-loading { opacity: .78; pointer-events: none; }
.auth-submit.is-loading b { animation: authSpin .8s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-inline-help,
.auth-footer-link {
    text-align: center;
}
.auth-inline-help {
    margin-top: 17px;
    color: #817687;
    font-size: 12px;
}
.auth-inline-help span { margin-right: 5px; }
.auth-inline-help a,
.auth-footer-link a { color: #7b2148; font-weight: 750; }
.auth-footer-link {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eee9ef;
    color: #776d7b;
}

.auth-message-page { min-height: calc(100vh - 160px); }
.auth-message-card {
    width: min(100%, 620px);
    margin-inline: auto;
    padding: clamp(30px, 5vw, 50px);
    border: 1px solid rgba(123,33,72,.13);
    border-radius: 26px;
    text-align: center;
    background: rgba(255,255,255,.95);
    box-shadow: 0 28px 80px rgba(47,35,49,.13);
}
.auth-message-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg,#7b2148,#6d3ab2);
    box-shadow: 0 15px 32px rgba(123,33,72,.24);
    font-size: 30px;
}
.auth-message-error .auth-message-icon { background: linear-gradient(135deg,#b73d55,#8f243d); }
.auth-message-card h1 { font-size: clamp(29px,4vw,40px); }
.auth-message-card > p { max-width: 500px; margin: 14px auto 0; color: #746a78; line-height: 1.65; }
.auth-message-steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin: 25px 0;
}
.auth-message-steps > div { padding: 14px 10px; border: 1px solid #e4dde6; border-radius: 15px; background: #fbfafc; }
.auth-message-steps span { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 10px; color: #7b2148; background: #f2e8ee; font-weight: 800; }
.auth-message-steps p { margin: 0; color: #756b79; font-size: 11px; line-height: 1.45; }
.auth-resend-form { max-width: 460px; margin: 0 auto; }

@media (max-width: 900px) {
    .auth-center-shell,
    .auth-register-shell { grid-template-columns: 1fr; width: min(100%, 650px); }
    .auth-info-card { padding-bottom: 34px; }
    .auth-benefit-list { grid-template-columns: repeat(3,1fr); }
    .auth-benefit-list > div { grid-template-columns: 1fr; text-align: center; }
    .auth-benefit-list > div > span { margin-inline: auto; }
    .auth-security-note { justify-content: center; text-align: center; }
}

@media (max-width: 650px) {
    .auth-page { min-height: auto; padding: 20px 10px 34px; }
    .auth-center-shell { border-radius: 22px; }
    .auth-info-card,
    .auth-form-card { padding: 26px 18px; }
    .auth-info-card { display: none; }
    .auth-form-card { min-height: 0; }
    .auth-password-grid,
    .auth-role-grid,
    .auth-message-steps { grid-template-columns: 1fr; }
    .auth-role-card { min-height: 76px; }
    .auth-form-heading { margin-bottom: 20px; }
    .auth-form-heading h2 { font-size: 30px; }
    .auth-message-card { padding: 28px 18px; border-radius: 22px; }
    .auth-message-steps > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; text-align: left; }
    .auth-message-steps span { margin: 0; }
}
