﻿/* ============================================================
   UA Login Widget
   ============================================================ */

/* Reset container — always on its own line */
ua-ng-login ua-account-reset,
ua-ng-login .ua-reset-container {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
}

/* Form field groups */
.ua-login-username-group {
    width: 100%;
    padding-bottom: 6%;
    margin-top: -1%;
}

.ua-login-password-group {
    width: 100%;
    padding-top: 8%;
    padding-bottom: 6%;
}

.ua-reset-username-group {
    width: 100%;
}

/* Form containers */
#uaAccountResetForm {
    margin-top: -8% !important;
}

#uaUserLoginForm {
    padding-top: 8%;
}

#ua-reset-username {
    margin-top: 5%;
}

/* Validation text */
ua-ng-login .text-danger {
    color: red;
}


/* ============================================================
   Forgot Password / Reset
   ============================================================ */

ua-ng-login .ua-account-reset,
ua-ng-login [ua-account-reset] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

ua-ng-login a.ua-reset-link {
    display: inline-block !important;
    text-decoration: none !important;
    color: inherit !important;
    margin-top: 0.75rem !important;
}

ua-ng-login .reset-option-btn {
    font-size: 0.75rem !important;
    font-weight: 800;
    width: 100%;
    padding: unset !important;
}

/* Cancel + Login side-by-side */
ua-ng-login .form-group.text-center.ua-cancel-container.display-inline {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
}

    ua-ng-login .form-group.text-center.ua-cancel-container.display-inline .reset-option-btn,
    ua-ng-login .form-group.text-center.ua-cancel-container.display-inline input[type="submit"] {
        flex: 1 1 0;
    }

ua-ng-login .btn.ua-cancel-link.reset-option-btn.ua-cancel-btn.reset-cancel {
    width: 48%;
}

/* Reset dialog: Cancel + submit side-by-side */
ua-ng-login .btn-toolbar.text-center {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
}

    ua-ng-login .btn-toolbar.text-center .reset-option-btn,
    ua-ng-login .btn-toolbar.text-center button.ua-submit.reset-option-btn {
        flex: 1 1 0;
        width: auto !important;
        max-width: 12rem;
        outline: unset !important;
    }

.ua-reset-group button {
    background-color: #a8504e !important;
}

/* Force element to a new line in any layout */
.always-newline {
    display: block !important;
    float: none;
    clear: both;
    width: auto;
    margin: 20px 0 0;
}

form .always-newline {
    order: -1;
    align-self: flex-start;
}


/* ============================================================
   Login Loader Overlay
   ============================================================ */

#loginLoader {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 1);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

    #loginLoader .spinner {
        width: 48px;
        height: 48px;
        border: 6px solid #ccc;
        border-top-color: #a8504e;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: auto;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   Hide Registration
   ============================================================ */

ua-user-register {
    display: none;
}


/* ============================================================
   Primary Button — cancel, submit, and continue
   ============================================================ */

ua-ng-login .ua-btn.ua-btn-cancel,
ua-ng-login .btn-primary,
ua-ng-login .ua-btn-primary.ua-continue-btn {
    background-color: #a8504e;
    border: 0;
    border-radius: 4px;
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    height: 3rem;
    letter-spacing: 0.025rem;
    line-height: 3.075rem;
    outline: unset !important;
    padding: 0 1.5rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    width: auto;
}

    /* Hover */
    ua-ng-login .btn.ua-cancel-link.reset-option-btn.ua-cancel-btn.reset-cancel:hover,
    ua-account-reset .ua-submit.ua-submit-email:hover,
    ua-ng-login .ua-btn.ua-btn-cancel:hover,
    ua-ng-login .btn-primary:hover,
    ua-ng-login .ua-btn-primary.ua-continue-btn:hover {
        background-color: #c35e5c !important;
        border-color: #c35e5c !important;
        color: #fff;
        outline: unset !important;
    }

    /* Focus */
    ua-ng-login .btn.ua-cancel-link.reset-option-btn.ua-cancel-btn.reset-cancel:focus,
    ua-account-reset .ua-submit.ua-submit-email:focus,
    ua-ng-login .ua-btn.ua-btn-cancel:focus,
    ua-ng-login .btn-primary:focus,
    ua-ng-login .btn-primary.focus,
    ua-ng-login .ua-btn-primary.ua-continue-btn:focus {
        background-color: #a8504e !important;
        border-color: #a8504e !important;
        color: #fff;
        outline: unset !important;
    }

    /* Active */
    ua-ng-login .btn.ua-cancel-link.reset-option-btn.ua-cancel-btn.reset-cancel:active,
    ua-account-reset .ua-submit.ua-submit-email:active,
    ua-ng-login .ua-btn.ua-btn-cancel:active,
    ua-ng-login .ua-btn-primary.ua-continue-btn:active,
    ua-ng-login .btn-primary:active {
        background-color: #8e4442 !important;
        border-color: #8e4442 !important;
        color: #fff;
        outline: unset !important;
    }

/* Bootstrap active/open-state overrides */
.btn-primary.active.focus,
.btn-primary.active:focus,
.btn-primary.active:hover,
.btn-primary:active.focus,
.btn-primary:active:focus,
.btn-primary:active:hover,
.open > .dropdown-toggle.btn-primary.focus,
.open > .dropdown-toggle.btn-primary:focus,
.open > .dropdown-toggle.btn-primary:hover {
    background-color: #c35e5c;
    border-color: unset;
    color: #fff;
}


/* ============================================================
   Login Library Container
   ============================================================ */

ua-ng-login-lib .mx-auto {
    width: auto;
}

ua-ng-login-lib .ua-login-body {
    margin: 0 0 0 -5%;
}


/* ============================================================
   Terms & Conditions / Privacy Policy
   ============================================================ */

ua-user-privacy-policy .md-checkbox.ua-pos {
    padding-top: 1% !important;
}

/*ua-user-privacy-policy .ua-pos label {
    padding-left: 6% !important;
}

ua-user-tp-modal .close {
    color: #000 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 21px;
    opacity: 0.4;
}*/

ua-user-tp-modal #myModal {
    top: 6%;
}

ua-user-tp-modal .modal-footer {
    padding-top: 1%;
    padding-bottom: 1%;
}

ua-user-tp-modal #myModal .modal-content {
    min-height: 100px !important;
}

/*ua-user-tp-modal .modal-header .close:focus,
ua-user-tp-modal .modal-header .close:hover,
.close:hover {
    background-color: white;
    color: #000 !important;
}*/

/* Step indicator */
.circle.active {
    background-color: #8e4442 !important;
    border: 2px solid #8e4442 !important;
    color: #fff;
}

.circle.completed {
    background-color: #8e4442 !important;
    border-color: #8e4442 !important;
}

.line.active {
    background-color: #8e4442 !important;
}

/* Login error messages */
#uaUserLoginForm .text-danger.text-center.mb-3.ua-error-msg,
#uaUserLoginForm .danger-message {
    color: red;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 100;
}

#uaUserLoginForm .danger-image {
    margin-top: 0.4rem;
}

/* Version-2 of T & C */
/* TOS/POS modal close (×) — specificity hack to override main.css 6-ID button rule */
ua-user-tp-modal #myModal .modal-header button[aria-label="Close"][data-dismiss="modal"].close {
    background: transparent !important;
    font-size: 27px;
    font-weight: 500;
    opacity: 0.2;
    border: 0;
    height: auto;
    line-height: 1;
    padding: 8px 12px;
    text-transform: none;
    letter-spacing: normal;
    color: #000 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

ua-user-tp-modal #myModal#myModal#myModal .modal-header button[aria-label="Close"][data-dismiss="modal"].close:hover,
ua-user-tp-modal #myModal#myModal#myModal .modal-header button[aria-label="Close"][data-dismiss="modal"].close:focus {
    background-color: transparent !important;
    color: #000 !important;
    opacity: 0.5 !important;
}

/* Remove dotted underline from links inside UA widget modals */
ua-user-tp-modal a {
    border-bottom: none !important;
    color: rgba(168, 80, 78, 0.8) !important;
    transition: color 0.2s ease-in-out !important;
}



/* Hide main.css fake checkbox pseudo-element inside TOS/POS modal */
ua-user-terms-conditions input[type="checkbox"] + label:before,
ua-user-privacy-policy input[type="checkbox"] + label:before {
    display: none !important;
}

ua-user-terms-conditions input[type="checkbox"] + label,
ua-user-privacy-policy input[type="checkbox"] + label {
    font-size: unset !important;
}

ua-user-terms-conditions .sub-title.sub-title-separator,
ua-user-privacy-policy .sub-title.sub-title-separator {
    font-size: 0.8em !important;
}

ua-user-terms-conditions .ua-tos label,
ua-user-privacy-policy .ua-pos label {
    margin-bottom: 0 !important;
}

ua-user-tp-modal-footer .modal-footer-btn-container .ua-continue-btn-option {
    margin-left: 0 !important;
}

ua-user-terms-conditions .ua-tos label.tos-cb-margin,
ua-user-privacy-policy .ua-pos label.pos-cb-margin {
    pointer-events: none;
}

/* ============================================================
   TOS / POS Checkbox Visibility Fix
   assets/css/main.css globally sets opacity:0 and z-index:-1
   on all checkboxes — restore native rendering for UA widgets.
   ============================================================ */

ua-user-privacy-policy input[type="checkbox"],
ua-user-terms-conditions input[type="checkbox"],
ua-ng-login input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: auto !important;
    accent-color: #a8504e !important;
    display: inline-block !important;
    float: none !important;
    height: 1rem !important;
    margin-right: 0.4rem !important;
    opacity: 1 !important;
    position: relative !important;
    vertical-align: middle !important;
    width: 1rem !important;
    z-index: auto !important;
}


/* ============================================================
   Force-Reset Password Modal
   ============================================================ */

@media (min-width: 992px) {
    ua-user-force-reset-password .container {
        width: 40vw;
    }
}

.ua-user-force-reset-password-dialog {
    top: 63% !important;
    max-height: 98vh !important;
}

.ua-user-force-reset-password-submit-btn {
    height: 3rem !important;
    line-height: 3.075rem !important;
    margin-left: 3%;
    width: 100% !important;
}

.ua-user-force-reset-password-footer {
    padding: 2% 7% 2% 2% !important;
}

.ua-user-force-reset-password-title {
    margin-bottom: 2% !important;
    padding: 1% 1% 0 6% !important;
}

.ua-user-force-reset-password-body {
    padding: 1% 1% 0.5% !important;
}

.inside p,
.force-reset-password-message {
    margin: 0 0 0 2% !important;
}

.ua-login-row {
    margin-top: 0 !important;
    padding: 1% 1% 1% 2% !important;
}

#uaWeakPasswordChangeForm ul {
    margin: 0;
    line-height: 1.2 !important;
}

#uaWeakPasswordChangeForm .form-group {
    margin-bottom: 1%;
}

#uaWeakPasswordChangeForm label {
    margin: 0 0 1%;
}

.modal-body {
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

/*ua-user-tp-modal #myModal .modal-body {
    padding: 2%;
}*/

.container {
    padding-right: 1% !important;
    padding-left: 2% !important;
}


/* ============================================================
   Force-Reset Password Form Fields
   ============================================================ */

.ua-password-group,
.password-container,
.ua-password-confirm-group,
#ua-change-password,
#ua-change-password-confirm {
    width: 100% !important;
}

.ua-password-confirm-group {
    margin-top: 3%;
}

#uaWeakPasswordChangeForm .ua-password-confirm-group {
    margin-top: 1%;
}

.force-reset-password-custom-styles.row {
    padding-left: unset;
}

force-reset-password-custom-styles {
    padding: 0 2% 2%;
}

.login p {
    margin-bottom: 0;
    margin-left: 2%;
}

#uaWeakPasswordChangeForm ul li {
    padding-left: 0 !important;
}

/* ============================================================
   Placeholder Font Size
   ============================================================ */

#ua-username::placeholder,
#ua-password::placeholder,
#ua-reset-username::placeholder {
    font-size: 16px;
}

/* ============================================================
   Hide submit button
   ============================================================ */

#uaAccountResetForm input[type="submit"].login-class {
    display: none !important;
}


/* ============================================================
   Scrollbar 
   ============================================================ */

ua-user-tp-modal #myModal .modal-content {
    min-height: 100px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

ua-user-tp-modal #myModal .modal-body {
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    max-height: 70vh !important;
}

ua-user-force-reset-password .ua-user-force-reset-password-content {
    display: flex !important;
    flex-direction: column !important;
    max-height: 85vh !important;
}

ua-user-force-reset-password .ua-user-force-reset-password-body {
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 230px !important;
}