/* ================================
   TWO COLUMN LAYOUT
================================ */
.tpa-two-columns {
    font-family: "Smooch Sans", sans-serif;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;

    @media screen and (max-width: 1023px) {
        flex-direction: column;
    }
}

/* LEFT SIDE */
.tpa-left-info {
    width: 25%;
    background-color: #78909C;
    padding: 60px 30px;

    @media screen and (max-width: 1023px) {
        width: 100%;
        padding: 30px 20px;
    }
}

.tpa-left-title {
    font-size: 64px;
    font-weight: medium;
    line-height: 0.84;
    margin-bottom: 24px;
    color: #fff;
}

.tpa-left-desc {
    font-family: inter;
    font-size: 24px;
    color: #fff;
    font-weight: 300;
    line-height: 1.4;
}

/* RIGHT SIDE */
.tpa-right-form {
    width: 75%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(19.7px);
    padding: 60px;

    @media screen and (max-width: 1023px) {
        width: 100%;
        padding: 30px 20px;
    }
}

/* HIDE PROGRESS BAR */
#tpa-amelia-form .tpa-progress {
    display: none !important;
}


/* ============================
   STEP CONTENT
============================ */
#tpa-amelia-form .tpa-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

#tpa-amelia-form .tpa-step-content.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   TITLES
============================ */
#tpa-amelia-form .tpa-title {
    font-size: 96px;
    line-height: 1;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 50px;
    width: 100%;

    @media screen and (max-width: 1023px) {
        font-size: 50px;
    }
}

/* ============================
   INPUTS
============================ */
#tpa-amelia-form .tpa-input {
    font-family: inter;
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 10px 23px;
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 24px;
    box-sizing: border-box;
    outline: none;
}

#tpa-amelia-form .tpa-input:focus {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* half inputs */
#tpa-amelia-form .tpa-half-input {
    width: 48% !important;
    display: inline-block;
}

#tpa-amelia-form .tpa-half-input:nth-child(2n) {
    margin-right: 0 !important;
}

/* full input */
#tpa-amelia-form .tpa-full-input {
    width: 100%;
}

#tpa-amelia-form .tpa-input::placeholder {
    font-family: inter;
    font-size: 16px;
    line-height: 1.4;
    color: #A7A7A7;
}

/* ============================
   LABELS
============================ */
#tpa-amelia-form .tpa-label {
    color: #ffffff;
    font-family: inter;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    display: block;
    margin: 0;

}

/* ============================
   CHECKBOX GROUPS
============================ */
#tpa-amelia-form .tpa-check-group {
    display: flex;
    gap: 34px;
    align-items: center;
}

#tpa-amelia-form .tpa-check-group label {
    color: #ffffff;
    font-size: 18px;
    font-family: inter;
    font-weight: 300;
    line-height: 1.4;
    display: flex;
    align-items: center;
    margin: 0;
}

#tpa-amelia-form .tpa-check-group input[type="checkbox"],
#tpa-amelia-form .tpa-check-group input[type="radio"] {
    transform: scale(1.2);
    margin-right: 8px;
}

/* ============================
   SERVICE OPTIONS (CHECKBOXES)
============================ */
#tpa-amelia-form .tpa-service-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    margin: 24px 0 24px;
}

#tpa-amelia-form .tpa-service-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.25s;
    font-family: inter;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    color: #fff;
}


#tpa-amelia-form .tpa-service-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
}

/* ============================
   BUTTONS
============================ */
#tpa-amelia-form .tpa-btn,
#tpa-amelia-form .tpa-next,
#tpa-amelia-form .tpa-prev,
#tpa-amelia-form .tpa-submit {
    font-family: inter;
    padding: 14px 20px;
    border-radius: 8px;
    background: #7894a0;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    width: 100%;
    transition: 0.25s;
    margin: 24px 0 0 0;
}

#tpa-amelia-form .tpa-btn:hover,
#tpa-amelia-form .tpa-next:hover,
#tpa-amelia-form .tpa-prev:hover,
#tpa-amelia-form .tpa-submit:hover {
    background: #6d8a96;
}

/* prev button */
#tpa-amelia-form .tpa-prev {
    background: #cccccc;
    color: #333;
    width: 100%;
    padding: 12px 20px;
}

#tpa-amelia-form .tpa-prev:hover {
    background: #b3b3b3;
}

/* ============================
   SUMMARY (STEP 3)
============================ */
#tpa-amelia-form .tpa-summary {
    background: #f7faff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d9e6ff;
    margin-bottom: 20px;
}

#tpa-amelia-form .tpa-summary p {
    margin: 8px 0;
    font-size: 16px;
}

#tpa-amelia-form .tpa-summary strong {
    color: #0073fa;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 480px) {


    #tpa-amelia-form .tpa-title {
        font-size: 38px;
    }

    #tpa-amelia-form .tpa-half-input {
        width: 100%;
        margin-right: 0 !important;
    }

    #tpa-amelia-form .tpa-service-options {
        grid-template-columns: 1fr;
    }
}

/* wrapper for date input */
#tpa-amelia-form .tpa-date-wrapper {
    position: relative;
    width: 100%;
}

/* force placeholder text on date input */
#tpa-amelia-form .tpa-date-input::before {
    content: attr(placeholder);
    color: #aaa;
    position: absolute;
    left: 20px;
    pointer-events: none;
}

/* hide placeholder when user selects date */
#tpa-amelia-form .tpa-date-input:not(:placeholder-shown)::before {
    display: none;
}

/* Calendar icon */
#tpa-amelia-form .tpa-date-input {
    background-image: url("../images/Calendar.svg");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;
}

#tpa-amelia-form .tpa-check-group-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 40px;

    @media screen and (max-width: 1023px) {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

#tpa-amelia-form .tpa-check-group-wrapper.check-inline-group {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* ============================================
   TEXTAREA
============================================ */
#tpa-amelia-form .tpa-textarea {
    background: #ffffff !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 15px 20px !important;
    height: 145px !important;
    font-size: 18px !important;
    font-family: "Inter", sans-serif !important;
    color: #000 !important;
    resize: vertical !important;
}

#tpa-amelia-form .tpa-textarea::placeholder {
    color: #A7A7A7 !important;
    font-size: 16px !important;
}

/* ============================================
   FILE INPUT CONTAINER
============================================ */
#tpa-amelia-form #tpa-file {
    border: none !important;
    font-family: "Inter", sans-serif !important;
    font-size: 18px !important;
    color: #A7A7A7 !important;
    cursor: pointer;
}

/* شكل زرار Choose File */
#tpa-file::-webkit-file-upload-button {
    background: #78909C !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    cursor: pointer;
    font-size: 14px !important;
}

/* ============================================
   TERMS CHECKBOX + TEXT
============================================ */
#tpa-amelia-form .tpa-terms {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    color: #fff !important;
    margin-top: 20px !important;
}

#tpa-amelia-form #tpa-terms-check {
    transform: scale(1.2) !important;
}

/* ============================================
   GLOBAL SPACING FOR STEP 3
============================================ */
#tpa-amelia-form .tpa-step-content[data-step="3"] label {
    margin-bottom: 10px !important;
    display: block !important;
}

#tpa-amelia-form .tpa-step-content[data-step="3"] .tpa-input {
    margin-bottom: 24px !important;
}

/* SUCCESS MESSAGE */
.tpa-success {
    margin-top: 20px;
    padding: 15px 20px;
    background: #e3ffe6;
    border-left: 5px solid #2ecc71;
    color: #2e7d32;
    font-size: 30px;
    border-radius: 6px;
    animation: fadeIn 0.4s ease;
}

/* ERROR MESSAGE */
.tpa-error {
    margin-top: 20px;
    padding: 15px 20px;
    background: #ffe3e3;
    border-left: 5px solid #e74c3c;
    color: #c0392b;
    font-size: 30px;
    border-radius: 6px;
    animation: fadeIn 0.4s ease;
}



/* Fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1023px) {
    .tpa-check-group {
        margin-top: 12px;
    }

    #tpa-amelia-form .tpa-date-input {
        background-image: none;
    }

    #tpa-amelia-form .tpa-half-input {
        width: 100% !important;
    }

    @media (max-width: 480px) {

        .tpa-date-mobile-label {
            font-size: 16px;
            font-family: Inter, sans-serif;
            color: #ffffff;
            margin-bottom: 6px;
            display: block;
        }

        /* إخفاء أي placeholder في الموبايل */
        .tpa-date-input::placeholder {
            color: transparent !important;
        }

        .tpa-date-input::before {
            display: none !important;
            content: none !important;
        }

        .tpa-date-input {
            height: 47px !important;
            padding-top: 10px !important;
            padding-bottom: 10px !important;
            line-height: normal !important;
        }
    }
}

/* ===============================================
   SUCCESS POPUP STYLES
=============================================== */

.tpa-success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpa-success-popup-overlay.show {
    opacity: 1;
}

.tpa-success-popup {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.tpa-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.tpa-popup-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

.tpa-popup-icon {
    text-align: center;
    margin-bottom: 24px;
}

.tpa-popup-icon svg {
    animation: checkmarkDraw 0.6s ease 0.2s both;
}

@keyframes checkmarkDraw {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tpa-popup-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
}

.tpa-popup-message {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-family: 'Inter', sans-serif;
}

.tpa-popup-info-box {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid #3b82f6;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-info-box p {
    margin: 0;
    color: #1e40af;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;

}

/* Credentials Section */
.tpa-popup-credentials {
    margin: 30px 0;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-credentials h3 {
    text-align: center;
    color: #1f2937;
    margin: 0 0 16px 0;
    font-size: 22px;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-credentials>p {
    text-align: center;
    color: #6b7280;
    margin: 0 0 24px 0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;

}

.tpa-credentials-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 24px;
    border-radius: 16px;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;

}

.credential-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Inter', sans-serif;

}

.credential-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    min-width: 80px;
    font-family: 'Inter', sans-serif;

}

.credential-value {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    word-break: break-all;
    font-family: 'Inter', sans-serif;

}

.credential-value.password-value {
    font-family: 'Inter', sans-serif;

    font-weight: 600;
    letter-spacing: 1px;
}

.copy-password-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;

}

.copy-password-btn:hover {
    background: white;
    color: #667eea;
    transform: scale(1.05);
}

.tpa-popup-warning {
    background: rgba(251, 191, 36, 0.15);
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-warning strong {
    display: inline;
    font-family: 'Inter', sans-serif;

}

/* Action Buttons */
.tpa-popup-actions {
    display: flex;
    gap: 16px;
    margin: 32px 0 24px 0;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-btn svg {
    width: 20px;
    height: 20px;
}

.tpa-btn-primary {
    background: linear-gradient(135deg, #78909C, #607D8B);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;

}

.tpa-btn-primary:hover {
    background: linear-gradient(135deg, #607D8B, #546E7A);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 125, 139, 0.3);
    color: white;
}

.tpa-btn-secondary {
    background: white;
    color: #78909C;
    border: 2px solid #78909C;
    font-family: 'Inter', sans-serif;

}

.tpa-btn-secondary:hover {
    background: #78909C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 125, 139, 0.3);
}

.tpa-popup-footer {
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
    margin: 24px 0 0 0;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-footer a {
    color: #78909C;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;

}

.tpa-popup-footer a:hover {
    text-decoration: underline;
}

.tpa-label.desktop-hidden {
    display: none !important;
}

@media screen and (max-width: 769px) {
    .tpa-label.desktop-hidden {
        display: block !important;
        margin-bottom: 8px !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpa-success-popup {
        padding: 32px 24px;
        width: 95%;
    }

    .tpa-popup-title {
        font-size: 24px;
    }

    .tpa-popup-actions {
        flex-direction: column;
    }

    .tpa-popup-btn {
        width: 100%;
        min-width: auto;
    }

    .credential-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .credential-value {
        width: 100%;
    }

    .copy-password-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tpa-success-popup {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .tpa-popup-title {
        font-size: 22px;
    }

    .tpa-popup-message {
        font-size: 14px;
    }

    .tpa-popup-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* Scrollbar Styling for Popup */
.tpa-success-popup::-webkit-scrollbar {
    width: 8px;
}

.tpa-success-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tpa-success-popup::-webkit-scrollbar-thumb {
    background: #78909C;
    border-radius: 10px;
}

.tpa-success-popup::-webkit-scrollbar-thumb:hover {
    background: #607D8B;
}

/* ============================================
   AUTH PAGES - SORRISO EZMERLI BRANDED STYLE
   Login / Set Password / Forgot / Reset
============================================ */

/* Import fonts matching the website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Smooch+Sans:wght@400;500;600&display=swap');

/* Full-page auth background */
.tpa-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f4f7 0%, #e8eff3 100%);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Auth Card */
.tpa-auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(96, 125, 139, 0.15);
    padding: 48px 44px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

/* Top accent bar */
.tpa-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #78909C, #607D8B);
}

/* Logo area */
.tpa-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.tpa-auth-logo img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.tpa-auth-logo-text {
    font-size: 48px;
    line-height: 1;
}

/* Title */
.tpa-auth-title {
    text-align: center;
    font-family: 'Smooch Sans', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #2C3E50;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

/* Subtitle */
.tpa-auth-subtitle {
    text-align: center;
    font-size: 15px;
    color: #78909C;
    margin: 0 0 32px 0;
    font-weight: 300;
    line-height: 1.5;
}

/* Form body */
.tpa-auth-body {
    width: 100%;
}

/* Form fields */
.tpa-auth-form .tpa-field {
    margin-bottom: 20px;
}

.tpa-auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 6px;
}

.tpa-auth-form input[type="email"],
.tpa-auth-form input[type="password"],
.tpa-auth-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1.5px solid #E0E7EB;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.tpa-auth-form input:focus {
    border-color: #78909C;
    box-shadow: 0 0 0 3px rgba(120, 144, 156, 0.15);
    background: #fff;
}

/* Password wrapper */
.tpa-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tpa-password-wrap input {
    padding-right: 48px !important;
    flex: 1;
}

.tpa-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #9CA3AF;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.tpa-toggle-pass:hover {
    color: #78909C;
}

/* Row for remember / forgot */
.tpa-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tpa-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
    cursor: pointer;
}

.tpa-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #78909C;
}

/* Links */
.tpa-link-sm,
.tpa-auth-btn-link {
    font-size: 14px;
    color: #78909C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tpa-link-sm:hover,
.tpa-auth-btn-link:hover {
    color: #546E7A;
    text-decoration: underline;
}

/* Primary button */
.tpa-auth-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #78909C 0%, #607D8B 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(96, 125, 139, 0.3);
}

.tpa-auth-btn:hover {
    background: linear-gradient(135deg, #607D8B 0%, #546E7A 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(96, 125, 139, 0.4);
}

.tpa-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.tpa-auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.tpa-auth-alert.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.tpa-auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.tpa-auth-alert.info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

/* Welcome name on set-password */
.tpa-auth-welcome-name {
    font-size: 16px;
    color: #374151;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Password strength bar */
.tpa-strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.tpa-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}

.tpa-strength-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Center text helper */
.tpa-auth-center {
    text-align: center;
    margin-top: 20px;
}

/* Forgot password - success state */
.tpa-auth-success-state {
    text-align: center;
    padding: 20px 0;
}

.tpa-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.tpa-auth-success-state h3 {
    font-size: 22px;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.tpa-auth-success-state p {
    font-size: 15px;
    color: #6B7280;
    margin: 0 0 8px 0;
}

.tpa-note {
    font-size: 13px !important;
    color: #9CA3AF !important;
}

/* Responsive */
@media (max-width: 520px) {
    .tpa-auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .tpa-auth-title {
        font-size: 26px;
    }

    .tpa-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* ============================================
   INLINE SET-PASSWORD FORM (inside success popup)
============================================ */

.tpa-inline-setpass {
    margin: 20px 0 0;
    border: 2px solid #e0e7eb;
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.tpa-inline-setpass-header {
    background: linear-gradient(135deg, #78909C 0%, #607D8B 100%);
    padding: 20px 24px;
    text-align: center;
    color: #fff;
}

.tpa-inline-setpass-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.tpa-inline-setpass-header h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.tpa-inline-setpass-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.tpa-inline-setpass-fields {
    padding: 22px 24px;
    background: #fafbfc;
}

.tpa-inline-field {
    margin-bottom: 16px;
}

.tpa-inline-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 6px;
}

.tpa-inline-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tpa-inline-pass-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 44px 11px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 9px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tpa-inline-pass-wrap input:focus {
    border-color: #78909C;
    box-shadow: 0 0 0 3px rgba(120, 144, 156, 0.15);
}

.tpa-inline-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #9CA3AF;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.tpa-inline-toggle:hover {
    color: #78909C;
}

.tpa-inline-alert {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.tpa-inline-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #78909C 0%, #607D8B 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(96, 125, 139, 0.3);
    margin-top: 4px;
}

.tpa-inline-submit-btn:hover {
    background: linear-gradient(135deg, #607D8B 0%, #546E7A 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(96, 125, 139, 0.4);
}

.tpa-inline-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}