/* Registration and password-reminder pages. All rules are locally scoped. */

.auth-page .login-panel {
    isolation: isolate;
}

.auth-page .login-panel-inner {
    position: relative;
}

.auth-register-page .login-layout {
    grid-template-columns: minmax(410px, 0.76fr) minmax(650px, 1.24fr);
}

.auth-register-page .login-panel-inner {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 42px clamp(38px, 4vw, 68px) 36px;
}

.auth-remind-page .login-panel-inner {
    width: min(100%, 600px);
}

.auth-register-page .login-visual-copy h1 {
    gap: clamp(5px, 0.6vw, 10px);
    font-size: clamp(20px, 1.8vw, 36px);
    letter-spacing: -1.4px;
}

.auth-language-switcher {
    position: absolute;
    z-index: 10;
    top: 24px;
    right: 28px;
}

.auth-language-picker {
    position: relative;
    display: grid;
    width: 52px;
    height: 42px;
    grid-template-columns: 22px 10px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--login-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(24, 27, 33, 0.07);
    color: #858a93;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-language-picker:hover,
.auth-language-picker:focus-within {
    border-color: var(--login-red);
    box-shadow: 0 0 0 4px rgba(194, 14, 26, 0.09), 0 8px 22px rgba(24, 27, 33, 0.07);
    transform: translateY(-1px);
}

.auth-language-picker .flag-icon {
    width: 21px;
    line-height: 15px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.auth-language-picker > i {
    font-size: 9px;
    pointer-events: none;
}

.auth-language-picker select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.auth-page-header {
    margin-bottom: 28px;
    padding-right: 72px;
}

.auth-page-header-mark {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 13px;
    background: #fbeaec;
    color: var(--login-red);
    font-size: 16px;
}

.auth-page-header h2 {
    margin: 0 0 9px;
    color: var(--login-text);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 750;
    letter-spacing: -1.5px;
    line-height: 1.08;
}

.auth-page-header p {
    max-width: 620px;
    margin: 0;
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth-feedback:empty {
    display: none;
}

.auth-feedback .auth-alert {
    position: relative;
    margin: 0 0 24px;
    padding: 15px 42px 15px 17px;
    border: 1px solid #f3c6ca;
    border-left: 4px solid var(--login-red);
    border-radius: 12px;
    background: #fff6f7;
    color: #7e2028;
    font-size: 13px;
    line-height: 1.45;
}

.auth-feedback .auth-alert strong {
    display: block;
    margin-bottom: 4px;
    color: #68151c;
    font-size: 14px;
}

.auth-feedback .auth-alert p {
    margin: 0;
}

.auth-form {
    margin: 0;
}

.auth-form-section {
    margin-bottom: 17px;
    padding: 22px;
    border: 1px solid #e7e9ed;
    border-radius: 16px;
    background: rgba(250, 250, 251, 0.82);
}

.auth-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #343840;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.auth-form-section-title i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #f7e5e7;
    color: var(--login-red);
    font-size: 11px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-field > label,
.auth-field-label-row label {
    display: block;
    margin: 0;
    color: #343840;
    font-size: 12px;
    font-weight: 700;
}

.auth-field > label {
    margin-bottom: 7px;
}

.auth-field-label-row {
    position: relative;
    display: flex;
    min-height: 26px;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 7px;
}

.auth-field-label-row label .auth-required,
.auth-field > label .auth-required {
    margin-left: 2px;
    color: var(--login-red);
}

.auth-field-help {
    position: static;
    z-index: 6;
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 1px solid #d7dae0;
    border-radius: 50%;
    outline: 0;
    background: #ffffff;
    color: #8b9099;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-field-help:hover,
.auth-field-help:focus-visible,
.auth-field-help:focus {
    border-color: var(--login-red);
    background: #fbeaec;
    box-shadow: 0 0 0 3px rgba(194, 14, 26, 0.09);
    color: var(--login-red);
}

.auth-field-help-text {
    position: absolute;
    z-index: 30;
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    width: min(270px, calc(100vw - 52px));
    padding: 10px 12px;
    transform: translateY(4px);
    visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: #25272d;
    box-shadow: 0 12px 30px rgba(19, 21, 26, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.auth-field-help:hover .auth-field-help-text,
.auth-field-help:focus .auth-field-help-text,
.auth-field-help:focus-visible .auth-field-help-text {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.auth-control-wrap {
    position: relative;
}

.auth-control-wrap > i {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 15px;
    width: 16px;
    transform: translateY(-50%);
    color: #9a9fa8;
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}

.auth-page .auth-control.form-control {
    display: block;
    width: 100%;
    max-width: none;
    height: 50px;
    margin: 0;
    padding: 0 14px 0 42px;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    outline: 0;
    background: #ffffff;
    box-shadow: none;
    color: var(--login-text);
    font-size: 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-page select.auth-control.form-control {
    padding-right: 34px;
    cursor: pointer;
}

/* Searchable country and time-zone controls (bootstrap-select, page scoped). */
.auth-page .bootstrap-select.auth-searchable-select.form-control {
    display: block;
    width: 100% !important;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
}

.auth-page .bootstrap-select.auth-searchable-select > .dropdown-toggle {
    position: relative;
    display: flex;
    float: none !important;
    width: 100%;
    height: 50px;
    align-items: center;
    margin: 0;
    padding: 0 38px 0 42px;
    border: 1px solid var(--login-border);
    border-radius: 11px !important;
    outline: 0 !important;
    background: #ffffff;
    box-shadow: none !important;
    color: var(--login-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-page .bootstrap-select.auth-searchable-select > .dropdown-toggle:hover {
    border-color: #c9cdd3;
    background: #ffffff;
    color: var(--login-text);
}

.auth-page .bootstrap-select.auth-searchable-select > .dropdown-toggle:focus,
.auth-page .bootstrap-select.auth-searchable-select.open > .dropdown-toggle {
    border-color: var(--login-red);
    outline: 0 !important;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(194, 14, 26, 0.08) !important;
    color: var(--login-text);
}

.auth-page .bootstrap-select.auth-searchable-select .filter-option {
    display: block;
    height: auto;
    line-height: 1.35;
    text-align: left;
}

.auth-page .bootstrap-select.auth-searchable-select .caret {
    right: 15px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    color: #858b94;
    transform: rotate(45deg);
    transition: color 160ms ease, transform 160ms ease;
}

.auth-page .bootstrap-select.auth-searchable-select.open .caret {
    color: var(--login-red);
    transform: rotate(225deg);
}

.auth-page .bootstrap-select.auth-searchable-select > .dropdown-toggle::after {
    display: none;
    content: none;
}

.auth-page .bootstrap-select.auth-searchable-select .dropdown-menu {
    width: 100%;
    min-width: 100%;
    margin: 7px 0 0;
    padding: 6px;
    overflow: visible;
    border: 1px solid var(--login-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(22, 24, 30, 0.16);
}

.auth-page .bootstrap-select.auth-searchable-select .bs-searchbox {
    padding: 3px 3px 8px;
}

.auth-page .bootstrap-select.auth-searchable-select .bs-searchbox .form-control {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d9dce1;
    border-radius: 9px;
    outline: 0;
    background: #f7f8f9;
    box-shadow: none;
    color: var(--login-text);
    font-size: 12px;
}

.auth-page .bootstrap-select.auth-searchable-select .bs-searchbox .form-control:focus {
    border-color: var(--login-red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(194, 14, 26, 0.08);
}

.auth-page .bootstrap-select.auth-searchable-select .dropdown-menu.inner {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.auth-page .bootstrap-select.auth-searchable-select .dropdown-menu.inner > li > a {
    display: block;
    padding: 9px 11px;
    border-radius: 7px;
    color: #4a4f58;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
}

.auth-page .bootstrap-select.auth-searchable-select .dropdown-menu.inner > li > a:hover,
.auth-page .bootstrap-select.auth-searchable-select .dropdown-menu.inner > li > a:focus,
.auth-page .bootstrap-select.auth-searchable-select .dropdown-menu.inner > li.active > a,
.auth-page .bootstrap-select.auth-searchable-select .dropdown-menu.inner > li.selected > a {
    outline: 0;
    background: #f9e9eb;
    color: var(--login-red-dark);
}

.auth-page .bootstrap-select.auth-searchable-select .no-results {
    margin: 3px;
    padding: 10px;
    border-radius: 7px;
    background: #f6f7f8;
    color: #7d838d;
    font-size: 11px;
}

.auth-page .auth-control.form-control::placeholder {
    color: #a5aab2;
    opacity: 1;
}

.auth-page .auth-control.form-control:hover {
    border-color: #c9cdd3;
}

.auth-page .auth-control.form-control:focus {
    border-color: var(--login-red);
    box-shadow: 0 0 0 4px rgba(194, 14, 26, 0.08);
}

.auth-control-wrap:focus-within > i {
    color: var(--login-red);
}

.auth-field small {
    display: block;
    margin-top: 6px;
    color: #888e98;
    font-size: 10px;
    line-height: 1.45;
}

.auth-privacy {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 2px 0 20px;
    padding: 15px 17px;
    border: 1px solid #e7e9ed;
    border-radius: 12px;
    background: #fafafa;
    color: #666c76;
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-privacy input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--login-red);
}

.auth-privacy-copy {
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 0.28em;
    line-height: 1.55;
}

.auth-privacy-copy > span,
.auth-privacy-copy > a {
    position: static !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
    line-height: inherit !important;
}

.auth-privacy a {
    color: var(--login-red);
    font-weight: 700;
    text-decoration: none;
}

.auth-privacy a:hover {
    color: var(--login-red-dark);
    text-decoration: underline;
}

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.auth-captcha-wrap {
    min-width: 304px;
    overflow: hidden;
}

.auth-required-note {
    display: block;
    margin-top: 8px;
    color: #969ba4;
    font-size: 10px;
}

.auth-actions {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.auth-primary-button,
.auth-secondary-button {
    display: inline-flex;
    float: none !important;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0 20px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-primary-button {
    min-width: 176px;
    border: 1px solid var(--login-red);
    background: linear-gradient(135deg, #ca111d 0%, #b60c17 100%);
    box-shadow: 0 11px 22px rgba(194, 14, 26, 0.19);
    color: #ffffff;
}

.auth-primary-button:hover,
.auth-primary-button:focus {
    border-color: var(--login-red-dark);
    outline: 0;
    background: linear-gradient(135deg, #b80d18 0%, #9d0912 100%);
    box-shadow: 0 13px 25px rgba(172, 10, 20, 0.24);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.auth-secondary-button {
    border: 1px solid #dfe2e7;
    background: #ffffff;
    color: #666c75;
}

.auth-secondary-button:hover,
.auth-secondary-button:focus {
    border-color: #bfc4cb;
    outline: 0;
    background: #f5f6f8;
    color: #333740;
    text-decoration: none;
}

.auth-bottom-link {
    margin: 23px 0 0;
    color: #8a8f98;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.auth-bottom-link a {
    color: var(--login-red);
    font-weight: 750;
    text-decoration: none;
}

.auth-bottom-link a:hover {
    color: var(--login-red-dark);
    text-decoration: underline;
}

.auth-remind-form .auth-form-section {
    padding: 25px;
}

.auth-remind-form .auth-form-grid {
    grid-template-columns: 1fr;
}

.auth-remind-intro {
    margin: 0 0 19px;
    color: #747a84;
    font-size: 12px;
    line-height: 1.6;
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #a0a5ad;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-or::before,
.auth-or::after {
    flex: 1;
    height: 1px;
    background: #e3e5e9;
    content: "";
}

.auth-remind-form .auth-form-footer {
    align-items: stretch;
    flex-direction: column;
}

.auth-remind-form .auth-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
}

.auth-remind-form .auth-primary-button,
.auth-remind-form .auth-secondary-button {
    width: auto;
    flex: 1 1 0;
}

.auth-success {
    padding: 28px;
    border: 1px solid #dfe8e2;
    border-radius: 16px;
    background: linear-gradient(145deg, #fbfdfb 0%, #f4f8f5 100%);
}

.auth-success-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 15px;
    background: #e3f1e8;
    color: #2d7c49;
    font-size: 20px;
}

.auth-success h3 {
    margin: 0 0 10px;
    color: #26332a;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.auth-success > p {
    margin: 0 0 20px;
    color: #637069;
    font-size: 13px;
    line-height: 1.65;
}

.auth-success-steps {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.auth-success-steps li {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 10px;
    align-items: start;
    color: #5e6962;
    font-size: 12px;
    line-height: 1.55;
}

.auth-success-steps span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    background: #e3f1e8;
    color: #2d7c49;
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 1260px) {
    .auth-register-page .login-layout {
        grid-template-columns: minmax(380px, 0.68fr) minmax(620px, 1.32fr);
    }

    .auth-register-page .login-visual-copy h1 {
        font-size: clamp(19px, 1.7vw, 28px);
    }
}

@media (max-width: 1100px) {
    .auth-register-page .login-panel-inner,
    .auth-remind-page .login-panel-inner {
        width: min(100%, 780px);
        margin: 0 auto;
        padding: 38px 42px 28px;
    }

    .auth-register-page .login-visual-copy h1 {
        font-size: clamp(26px, 4vw, 44px);
    }
}

@media (max-width: 720px) {
    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field-full {
        grid-column: auto;
    }

    .auth-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-actions {
        width: 100%;
    }

    .auth-primary-button,
    .auth-secondary-button {
        flex: 1 1 0;
    }
}

@media (max-width: 640px) {
    .auth-register-page .login-panel-inner,
    .auth-remind-page .login-panel-inner {
        padding: 24px 20px 18px;
    }

    .auth-language-switcher {
        top: 17px;
        right: 18px;
    }

    .auth-language-picker {
        width: 48px;
        height: 40px;
    }

    .auth-page-header {
        margin-bottom: 20px;
        padding-right: 58px;
    }

    .auth-page-header-mark {
        display: none;
    }

    .auth-page-header h2 {
        font-size: 29px;
        letter-spacing: -1.1px;
    }

    .auth-page-header p {
        font-size: 13px;
    }

    .auth-register-page .login-visual-copy h1 {
        gap: 4px;
        font-size: clamp(16px, 4.4vw, 18px);
        letter-spacing: -0.8px;
    }

    .auth-form-section,
    .auth-remind-form .auth-form-section {
        margin-bottom: 14px;
        padding: 17px;
        border-radius: 14px;
    }

    .auth-form-grid {
        gap: 15px;
    }

    .auth-form-section-title {
        margin-bottom: 15px;
    }

    .auth-page .auth-control.form-control {
        height: 50px;
    }

    .auth-captcha-wrap {
        width: 100%;
        min-width: 0;
    }

    .auth-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .auth-remind-form .auth-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .auth-primary-button,
    .auth-secondary-button {
        width: 100%;
        flex: none;
    }

    .auth-remind-form .auth-primary-button,
    .auth-remind-form .auth-secondary-button {
        width: 100%;
        flex: none;
    }

    .auth-success {
        padding: 22px;
    }
}

@media (max-width: 350px) {
    .auth-captcha-wrap .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }

    .auth-captcha-wrap {
        height: 70px;
    }
}
