.x2-auth-page {
    min-height: 100vh;
}

.loginPageContainer {
    min-height: 520px;
    padding: 32px 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--page-bg);
    color: #fff;
}

.loginPageContainer > h1 {
    margin: 0 0 24px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.x2LoginForm,
.x2LoginLinks,
.x2LoginErrors {
    width: 100%;
    max-width: 768px;
}

.x2LoginErrors {
    margin: 0 0 18px;
    padding: 11px 15px;
    border: 1px solid #ee5a5a;
    border-radius: 8px;
    background: rgba(174, 31, 31, .2);
    color: #ffb7b7;
    font-size: 13px;
    line-height: 1.5;
}

.x2LoginForm {
    display: flex;
    flex-direction: column;
}

.x2LoginForm label {
    padding: 0 0 5px 20px;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

.x2LoginInput {
    width: 100%;
    height: 48px;
    margin: 0 0 16px;
    padding: 10px 46px 10px 47px;
    appearance: none;
    border: 2px solid #8b939b;
    border-radius: 999px;
    outline: 0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
    color: #111;
    font: 400 14px Poppins, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.x2LoginInput:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 195, 59, .14);
}

.usernameField {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23061f33'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5.5 0-9 2.8-9 6v2h18v-2c0-3.2-3.5-6-9-6Z'/%3E%3C/svg%3E");
}

.x2PasswordField {
    position: relative;
}

.passwordField {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23061f33'%3E%3Cpath d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a3 3 0 0 0-3 3v8h16v-8a3 3 0 0 0-3-3Zm-7-2a2 2 0 1 1 4 0v2h-4V7Zm3 9.7V19h-2v-2.3a2 2 0 1 1 2 0Z'/%3E%3C/svg%3E");
}

.showPass {
    width: 34px;
    height: 34px;
    padding: 6px;
    position: absolute;
    top: 7px;
    right: 10px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #30404d;
    cursor: pointer;
}

.showPass svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.showPass[aria-pressed="true"] { color: var(--gold); }

.mediumBtn.loginBtn {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 10px 22px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    cursor: pointer;
    font: 700 14px Poppins, sans-serif;
    text-transform: uppercase;
}

.x2LoginLinks {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.modalLoginForgotPass {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold);
}

.modalLoginForgotPass svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.x2LoginLinks hr {
    width: 100%;
    margin: 0 0 28px;
    border: 0;
    border-top: 1px solid #294257;
}

.x2RegisterLink {
    margin-top: 12px;
    color: var(--gold);
    font-size: 14px;
}

.modalLoginForgotPass:hover,
.x2RegisterLink:hover { color: var(--gold-hover); }

@media (min-width: 768px) {
    .loginPageContainer { padding: 44px 24px 64px; }
    .loginPageContainer > h1 { font-size: 30px; }
}

.registerPageContainer,
.forgotPassPageContainer {
    min-height: 520px;
    padding: 32px 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--page-bg);
    color: #fff;
}

.registerPageContainer > h1,
.forgotPassPageContainer > h1 {
    margin: 0 0 24px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.x2RegisterForm,
.x2ForgotForm,
.x2AuthFooterLink,
.x2AuthMessage,
.x2ForgotIntro {
    width: 100%;
    max-width: 768px;
}

.x2RegisterForm,
.x2ForgotForm {
    display: flex;
    flex-direction: column;
}

.x2RegisterForm > label:not(.x2CheckLabel),
.x2ForgotForm > label {
    padding: 0 0 5px 20px;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

.x2AuthInput,
.x2AuthSelect {
    width: 100%;
    height: 48px;
    margin: 0 0 16px;
    padding: 10px 16px;
    appearance: none;
    border: 2px solid #8b939b;
    border-radius: 999px;
    outline: 0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
    color: #111;
    font: 400 14px Poppins, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.x2AuthInput.usernameField,
.x2AuthInput.emailField,
.x2AuthInput.passwordField {
    padding-left: 47px;
    padding-right: 46px;
}

.emailField {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23061f33'%3E%3Cpath d='M3 4h18a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm9 8 8-5H4l8 5Zm0 2.3L3 8.7V18h18V8.7l-9 5.6Z'/%3E%3C/svg%3E");
}

.x2AuthInput:focus,
.x2AuthSelect:focus,
.x2PhoneField:focus-within,
.x2DateSelection select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 195, 59, .14);
}

.x2AuthSelect,
.x2DateSelection select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 9 5 5 5-5' fill='none' stroke='%235b6670' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-size: 20px;
}

.x2PhoneField {
    height: 48px;
    margin: 0 0 16px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 2px solid #8b939b;
    border-radius: 999px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.x2PhonePrefix {
    padding: 0 12px 0 16px;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid #d8dde1;
    color: #253544;
    font-size: 13px;
    white-space: nowrap;
}

.x2PhoneField input {
    min-width: 0;
    flex: 1;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    font: 400 14px Poppins, sans-serif;
}

.x2DateSelection {
    width: 100%;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.x2DateSelection select {
    width: 100%;
    height: 48px;
    padding: 8px 34px 8px 14px;
    appearance: none;
    border: 2px solid #8b939b;
    border-radius: 999px;
    outline: 0;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 9 5 5 5-5' fill='none' stroke='%235b6670' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    color: #111;
    font: 400 13px Poppins, sans-serif;
}

.x2CheckLabel {
    margin: 0 0 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.x2CheckLabel input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    flex: 0 0 17px;
    accent-color: var(--gold);
}

.x2CheckLabel a,
.x2AuthFooterLink a { color: var(--gold); }
.x2CheckLabel a:hover,
.x2AuthFooterLink a:hover { color: var(--gold-hover); }
.x2CheckLabel--marketing { margin-bottom: 20px; }

.registerBtn.mediumBtn,
.forgotPasswordBtn.mediumBtn {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 10px 22px;
    appearance: none;
    border: 1px solid var(--gold);
    border-radius: 999px;
    cursor: pointer;
    font: 700 14px Poppins, sans-serif;
    text-transform: uppercase;
}

.x2AuthFooterLink {
    margin-top: 28px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.x2AuthFooterLink hr {
    width: 100%;
    margin: 0 0 26px;
    border: 0;
    border-top: 1px solid #294257;
}

.x2AuthFooterLink--compact { margin-top: 24px; }
.x2AuthFooterLink--compact hr { width: 50%; margin-right: auto; margin-left: auto; }

.x2AuthMessage {
    margin: 0 0 18px;
    padding: 11px 15px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.x2AuthMessage--error {
    border: 1px solid #ee5a5a;
    background: rgba(174, 31, 31, .28);
    color: #ffd1d1;
}

.x2AuthMessage--success {
    border: 1px solid #28a66a;
    background: rgba(24, 122, 74, .24);
    color: #c9ffe3;
}

.x2ForgotIntro {
    margin: -4px 0 24px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

@media (min-width: 768px) {
    .registerPageContainer,
    .forgotPassPageContainer { padding: 44px 24px 64px; }
    .registerPageContainer > h1,
    .forgotPassPageContainer > h1 { font-size: 30px; }
}

@media (max-width: 480px) {
    .x2DateSelection { gap: 5px; }
    .x2DateSelection select { padding-left: 11px; font-size: 12px; }
}
