/* ============================================
   AWA Auth — Unified Entry Modal Styles
   Matches live site login popup DNA:
     - Pill buttons (border-radius: 30px)
     - GT Pressura labels + inputs
     - freight-sans-pro body/headings
     - Subtle borders, no heavy outlines
     - Compact centered CTA buttons
   ============================================ */

/* Magnific Popup hide */
.mfp-hide {
    display: none !important;
}

/* ── Modal Container ── */
.awa-auth-modal {
    position: relative;
    background: #FFFFFF;
    width: 100%;
    max-width: 460px;
    margin: 20px auto;
    border-radius: 12px;
    border: none;
}

.awa-auth-modal__container {
    padding: 40px 36px;
    text-align: center;
}

/* ── Heading ── */
.awa-auth-modal__heading {
    font-family: freight-sans-pro, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #231F20;
    margin: 0 0 28px 0;
}

/* ── Social Login ── */
.awa-auth-modal__social {
    margin-bottom: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.awa-auth-modal__social .nsl-container .nsl-container-buttons {
    padding: 0;
}

.awa-auth-modal__social .nsl-container-block .nsl-container-buttons a {
    margin: 0 0 12px 0;
    max-width: 100% !important;
    border: none !important;
    border-radius: 30px !important;
    font-family: freight-sans-pro, sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.awa-auth-modal__social .nsl-container-block .nsl-container-buttons a:hover {
    opacity: 0.85;
}

/* ── Divider ── */
.awa-auth-modal__divider {
    display: flex;
    align-items: center;
    margin: 20px auto;
    max-width: 360px;
    color: #3E4240;
}

.awa-auth-modal__divider::before,
.awa-auth-modal__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #3E4240;
    opacity: 0.25;
}

.awa-auth-modal__divider span {
    padding: 0 14px;
    font-family: 'GT Pressura', sans-serif;
    font-size: 14px;
    text-transform: lowercase;
    color: #3E4240;
}

/* ── Form ── */
.awa-auth-modal__form {
    text-align: left;
    max-width: 360px;
    margin: 0 auto;
}

/* ── Field ── */
.awa-auth-modal__field {
    margin-bottom: 4px;
}

.awa-auth-modal__field label {
    display: block;
    font-family: 'GT Pressura', sans-serif;
    font-size: 16px;
    color: #3E4240;
    margin-bottom: 8px;
}

.awa-auth-modal__field input {
    display: block;
    width: 100%;
    padding: 10px 8px;
    font-family: 'GT Pressura', sans-serif;
    font-size: 16px;
    color: #3E4240;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 200ms ease;
}

.awa-auth-modal__field input:focus {
    outline: none;
    border-color: #EE3024;
}

.awa-auth-modal__field input::placeholder {
    color: #999999;
    font-family: 'GT Pressura', sans-serif;
}

/* Field errors */
.awa-auth-modal__field-error {
    color: #EE3024;
    font-family: freight-sans-pro, sans-serif;
    font-size: 13px;
    margin: 4px 0 0 0;
    min-height: 0;
}

/* ── Primary Button (CONTINUE / LOG IN / UPDATE) ── */
.awa-auth-modal__btn-primary {
    display: block;
    width: auto;
    padding: 10px 40px;
    font-family: freight-sans-pro, sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #EE3024;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 200ms ease;
    margin: 20px auto 0 auto;
}

.awa-auth-modal__btn-primary span {
    pointer-events: none;
}

.awa-auth-modal__btn-primary:hover {
    background: #231F20;
}

.awa-auth-modal__btn-primary:active {
    transform: scale(0.98);
}

.awa-auth-modal__btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Form Notices ── */
.awa-auth-modal .form-notice {
    display: none;
    align-items: center;
    font-family: freight-sans-pro, sans-serif;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

.awa-auth-modal .form-notice.error {
    display: block;
    color: #EE3024;
}

.awa-auth-modal .form-notice.loading {
    display: flex;
    justify-content: center;
    color: #3E4240;
}

.awa-auth-modal .form-notice.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 6px;
    display: inline-block;
    background: url('../images/loading.gif') no-repeat center;
    background-size: contain;
}

.awa-auth-modal .form-notice.success {
    display: block;
    color: #21934f;
}

/* ── Footer Text ── */
.awa-auth-modal__footer-text {
    font-family: freight-sans-pro, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #3E4240;
    text-align: center;
    margin-top: 24px;
    opacity: 0.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.awa-auth-modal .awa-auth-modal__footer-text a,
.awa-auth-modal .awa-auth-modal__footer-text a:link,
.awa-auth-modal .awa-auth-modal__footer-text a:visited,
.awa-auth-modal .awa-auth-modal__footer-text a:hover,
.awa-auth-modal .awa-auth-modal__footer-text a:active {
    color: #3E4240 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* ── Screen 2: Subtext ── */
.awa-auth-modal__subtext {
    font-family: freight-sans-pro, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #3E4240;
    margin: 0 0 6px 0;
}

.awa-auth-modal__subtext strong {
    font-weight: 700;
    color: #231F20;
}

/* ── Back Button ── */
.awa-auth-modal__back {
    background: none;
    border: none;
    font-family: freight-sans-pro, sans-serif;
    font-size: 14px;
    color: #3E4240;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 200ms ease;
    display: inline-block;
    text-align: left;
    width: 100%;
}

.awa-auth-modal__back:hover {
    opacity: 1;
}

/* ── Text Links ── */
.awa-auth-modal__text-link {
    font-family: freight-sans-pro, sans-serif;
    font-size: 14px;
    color: #231F20;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-block;
    transition: color 200ms ease;
}

.awa-auth-modal__text-link:hover {
    color: #EE3024;
}

/* ── Password Fallback ── */
.awa-auth-modal__password-fallback {
    margin-top: 28px;
    text-align: center;
}

/* ── Newsletter Checkbox ── */
.awa-auth-modal__newsletter {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: #FFFFFF;
    text-align: left;
}

.awa-auth-modal__checkbox-label {
    font-family: freight-sans-pro, sans-serif;
    font-size: 14px;
    color: #3E4240;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.awa-auth-modal__checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #EE3024;
    cursor: pointer;
}

/* ── Magnific Popup Overrides ── */
.mfp-bg {
    background: #000;
}

/* Override any inherited theme .login-popup styles */
.awa-auth-modal.login-popup,
.awa-auth-modal {
    border-radius: 12px !important;
    background: #FFFFFF !important;
    max-width: 460px !important;
    border: none !important;
}
