/* Premium authentication surface. Keep the existing form flow and red brand accent. */
.auth-page {
    --auth-ink: #182231;
    --auth-border: #e5eaf1;
    --auth-panel: rgba(255, 255, 255, 0.92);
    padding-bottom: 56px;
    position: relative;
}

.auth-page::before {
    background: radial-gradient(circle, rgba(227, 5, 18, 0.09) 0, rgba(227, 5, 18, 0) 68%);
    content: '';
    height: 420px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: -120px;
    transform: translateX(-50%);
    width: 720px;
}

.auth-page section {
    position: relative;
    z-index: 1;
}

.auth-page .section-info {
    margin-bottom: 26px;
}

.auth-page .section-title {
    color: var(--auth-ink) !important;
    font-size: clamp(30px, 4vw, 48px);
    font-style: normal;
    font-weight: 600;
    letter-spacing: -1.4px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.auth-page .big-divider {
    background: linear-gradient(90deg, #e30512, rgba(227, 5, 18, 0));
    border-radius: 99px;
    height: 3px;
    margin: 0 auto;
    width: 64px;
}

.auth-page .form-border-custom {
    background: var(--auth-panel);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(27, 39, 57, 0.12), 0 3px 12px rgba(27, 39, 57, 0.05);
    padding: 38px;
    position: relative;
}

.auth-page .form-border-custom::before {
    background: linear-gradient(90deg, #e30512, #ff6570, transparent);
    border-radius: 24px 24px 0 0;
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.auth-page input:not([type='hidden']):not([type='checkbox']),
.auth-page select,
.auth-page textarea {
    background: #fff;
    border: 1px solid var(--auth-border) !important;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(27, 39, 57, 0.025);
    color: var(--auth-ink);
    height: 58px;
    padding: 14px 18px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-page input:not([type='hidden'])::placeholder,
.auth-page textarea::placeholder {
    color: #9aa5b4;
    opacity: 1;
}

.auth-page input:not([type='hidden']):not([type='checkbox']):focus,
.auth-page select:focus {
    border-color: rgba(227, 5, 18, 0.52) !important;
    box-shadow: 0 0 0 4px rgba(227, 5, 18, 0.09), 0 6px 18px rgba(27, 39, 57, 0.07);
    outline: none;
    transform: translateY(-1px);
}

/* The country control is a Bootstrap FormHelpers widget, not a native input. */
.auth-page .bfh-selectbox.form-control {
    background: transparent;
    border: 0 !important;
    box-shadow: none;
    height: auto;
    padding: 0;
}

.auth-page .bfh-selectbox .bfh-selectbox-toggle {
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(27, 39, 57, 0.025);
    color: var(--auth-ink);
    height: 58px;
    padding: 14px 18px;
}

.auth-page .bfh-selectbox .bfh-selectbox-toggle:focus,
.auth-page .bfh-selectbox.open .bfh-selectbox-toggle {
    border-color: rgba(227, 5, 18, 0.52);
    box-shadow: 0 0 0 4px rgba(227, 5, 18, 0.09), 0 6px 18px rgba(27, 39, 57, 0.07);
    outline: none;
}

.auth-page .bfh-selectbox .dropdown-menu {
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 16px 35px rgba(27, 39, 57, 0.14);
    left: 0;
    margin-top: 6px;
    max-height: 280px;
    min-width: 100%;
    overflow-y: auto;
    padding: 6px;
    right: auto;
    width: 100%;
}

.auth-page .bfh-selectbox .dropdown-menu input {
    border: 1px solid #d9e1eb !important;
    border-radius: 9px;
    box-shadow: none;
    font-size: 13px;
    height: 40px;
    margin: 0 0 6px;
    padding: 8px 12px;
    transform: none;
    width: 100%;
}

.auth-page .bfh-selectbox .dropdown-menu input:focus {
    border-color: rgba(227, 5, 18, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(227, 5, 18, 0.08);
}

.auth-page .bfh-selectbox .dropdown-menu a {
    border-radius: 8px;
    color: var(--auth-ink);
    padding: 9px 12px;
}

.auth-page .bfh-selectbox .dropdown-menu a:hover,
.auth-page .bfh-selectbox .dropdown-menu a:focus {
    background: rgba(227, 5, 18, 0.07);
    color: #e30512;
}

.auth-page label {
    color: var(--auth-ink);
    font-weight: 400;
}

.auth-page .btn.btn-default {
    box-shadow: 0 10px 20px rgba(227, 5, 18, 0.2);
    font-weight: 500;
    min-height: 50px;
    padding-left: 26px;
    padding-right: 26px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.auth-page .btn.btn-default:hover,
.auth-page .btn.btn-default:focus {
    box-shadow: 0 14px 26px rgba(227, 5, 18, 0.28);
    transform: translateY(-2px);
}

.auth-page a {
    font-weight: 500;
}

.auth-page strong {
    font-weight: 500;
}

.auth-page #login-user-div {
    background: rgba(227, 5, 18, 0.025);
    border: 1px solid rgba(227, 5, 18, 0.2);
    border-radius: 999px;
    box-shadow: none;
    display: table;
    margin: 24px auto 0;
    padding: 8px 18px;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
    width: auto;
}

.auth-page #login-user-div:hover,
.auth-page #login-user-div:focus-within {
    background: rgba(227, 5, 18, 0.06);
    box-shadow: 0 5px 12px rgba(227, 5, 18, 0.08);
    transform: translateY(-1px);
}

.auth-page .login-user-option {
    color: #e30512;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}

.auth-page #login-acc > input[type='checkbox'] {
    appearance: none;
    background: #fff;
    border: 1.5px solid #cbd4df;
    border-radius: 6px;
    cursor: pointer;
    display: inline-grid;
    height: 19px;
    margin: 0 8px 0 0;
    place-content: center;
    vertical-align: -4px;
    width: 19px;
}

.auth-page #login-acc > input[type='checkbox']::before {
    background: #e30512;
    border-radius: 3px;
    content: '';
    height: 9px;
    transform: scale(0);
    transition: transform .14s ease;
    width: 9px;
}

.auth-page #login-acc > input[type='checkbox']:checked {
    border-color: #e30512;
}

.auth-page #login-acc > input[type='checkbox']:checked::before {
    transform: scale(1);
}

.auth-page #login-acc > input[type='checkbox']:focus-visible {
    box-shadow: 0 0 0 4px rgba(227, 5, 18, 0.12);
    outline: none;
}

.auth-page #login-acc > label {
    font-weight: 500;
}

.auth-page--signup .form-border-custom {
    padding: 42px 38px 34px;
}

.auth-page--signup .div_form_add {
    padding-left: 6px;
    padding-right: 6px;
}

.auth-page--signup .div_form_add > .form-control,
.auth-page--signup .div_form_add > .input,
.auth-page--signup .input_code,
.auth-page--signup .input_phone {
    margin-bottom: 16px;
}

.auth-page--signup #our-terms {
    align-items: center;
    display: flex;
    gap: 8px;
    line-height: 1.5;
    margin-top: 12px;
}

.auth-page--signup #our-terms input {
    appearance: none;
    background: #fff;
    border: 1.5px solid #cbd4df;
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
    height: 20px;
    margin-top: 0;
    position: relative;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
    width: 20px;
}

.auth-page--signup #our-terms input::after {
    color: #fff;
    content: '✓';
    font-size: 13px;
    font-weight: 700;
    left: 50%;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .14s ease;
}

.auth-page--signup #our-terms input:checked {
    background: #e30512;
    border-color: #e30512;
}

.auth-page--signup #our-terms input:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

.auth-page--signup #our-terms input:focus-visible {
    box-shadow: 0 0 0 4px rgba(227, 5, 18, 0.12);
    outline: none;
}

.auth-page--signup #label_terms {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-page .login-user {
    margin-top: 8px;
}

.auth-page #login-user-div.login-user-access {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(227, 5, 18, 0.32);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(27, 39, 57, 0.04);
    cursor: pointer;
    display: flex;
    gap: 14px;
    margin: 0 auto;
    min-height: 70px;
    padding: 14px 18px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.auth-page #login-user-div.login-user-access:hover,
.auth-page #login-user-div.login-user-access:focus-visible {
    border-color: #e30512;
    box-shadow: 0 0 0 4px rgba(227, 5, 18, 0.08), 0 8px 18px rgba(27, 39, 57, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.auth-page .login-user-access-icon {
    color: #e30512;
    flex: 0 0 28px;
    font-size: 24px;
    text-align: center;
}

.auth-page .login-user-access-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.auth-page .login-user-option {
    color: #1b2739;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.auth-page .login-user-access-description {
    color: #7b8795;
    font-size: 12px;
    line-height: 1.4;
}

.auth-page .login-user-access-arrow {
    color: #e30512;
    font-size: 14px;
}

.auth-page .passkey-login-wrapper {
    margin: 14px 0 0;
}

.auth-page .passkey-login-divider {
    align-items: center;
    display: flex;
    gap: 12px;
    margin: 18px 0 14px;
    text-align: center;
}

.auth-page .passkey-login-divider span {
    border-bottom: 1px solid #dfe5eb;
    flex: 1;
}

.auth-page .passkey-login-divider span:nth-child(2) {
    border: 0;
    color: #7b8795;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-page .passkey-login-panel {
    background: #f3f6f9;
    border-radius: 16px;
    padding: 18px 20px 20px;
}

.auth-page .passkey-login-heading {
    align-items: center;
    color: #7b8795;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    text-align: center;
}

.auth-page .passkey-login-heading span {
    border-bottom: 1px solid #cbd4df;
    flex: 1;
}

.auth-page .passkey-login-heading span:nth-child(2) {
    border: 0;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-page #btn-passkey-login {
    align-items: center;
    background: #1b2b3a;
    border-color: #1b2b3a;
    border-radius: 28px;
    box-shadow: 0 8px 18px rgba(27, 43, 58, 0.18);
    color: #fff;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 52px;
    padding: 10px 18px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-page #btn-passkey-login:hover,
.auth-page #btn-passkey-login:focus {
    background: #10202e;
    border-color: #10202e;
    box-shadow: 0 12px 24px rgba(27, 43, 58, 0.24);
    color: #fff;
    transform: translateY(-1px);
}

.auth-page .passkey-login-description {
    color: #718096;
    font-size: 12px;
    line-height: 1.5;
    margin: 14px 0 0;
    text-align: center;
}

.auth-page #passkey-login-error {
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    padding: 10px 14px;
}

@media (max-width: 767px) {
    .auth-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-page .form-border-custom,
    .auth-page--signup .form-border-custom {
        border-radius: 18px;
        padding: 28px 18px 22px;
    }

    .auth-page .form-border-custom::before {
        border-radius: 18px 18px 0 0;
    }

    .auth-page .section-title {
        font-size: 32px;
    }

    .auth-page--signup .div_form_add {
        padding-left: 0;
        padding-right: 0;
    }

    .auth-page #login-user-div.login-user-access {
        width: 100%;
    }
}
