/* === Modal wrapper (Previous) === */
.my-auth-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, .45);
    z-index: 999999;
}

.my-auth-modal.is-open {
    display: flex;
}

.my-auth-modal__panel {
    width: min(520px, 100%);
    position: relative;
}

.button_modal_form {
    display: flex;
    gap: 10px;
}

/* Close Button - Force Reset */
.my-auth-modal__close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 38px;
    height: 38px;
    border: 0 !important;
    border-radius: 999px !important;
    cursor: pointer;
    background: #fff !important;
    color: #333 !important;
    /* Force dark X */
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

.my-auth-modal__close:hover {
    background: #fff !important;
    color: #000 !important;
}

body.my-auth-modal-open {
    overflow: hidden;
}

/* === Main Auth Styles (User Provided) === */
:root {
    --my-auth-main: #006f5e;
}

.my-auth-wrap {
    max-width: 420px;
    margin: 24px auto;
    padding: 0 14px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
}

/* If inside modal, we might want to remove margin/max-width or adjust */
.my-auth-modal__panel .my-auth-wrap {
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 0;
}

.my-auth-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.my-auth-switch {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, .04);
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* Tab Button - Force Reset */
.my-auth-tab {
    flex: 1;
    border: 0 !important;
    background: transparent !important;
    border-radius: 999px !important;
    padding: 10px 12px !important;
    cursor: pointer;
    font-weight: 600 !important;
    color: #666 !important;
    /* Visible text on light bg */
    box-shadow: none !important;
    margin: 0 !important;
    text-transform: none !important;
    /* Prevent UPPERCASE if theme sets it */
    font-size: 14px !important;
    line-height: normal !important;
    min-height: 0 !important;
}

.my-auth-tab:hover {
    color: #333 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.my-auth-tab.is-active {
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06) !important;
    color: #111 !important;
}

.my-auth-form {
    display: none;
    margin-top: 10px;
}

.my-auth-form.is-active {
    display: block;
}

.my-auth-label {
    display: block;
    margin: 12px 0 0;
}

.my-auth-label>span {
    display: block;
    font-size: 13px;
    color: rgba(0, 0, 0, .7);
    margin-bottom: 6px;
    font-weight: normal;
}

.my-auth-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 14px !important;
    padding: 12px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #fff !important;
    color: #333 !important;
    height: auto !important;
    line-height: normal !important;
    box-shadow: none !important;
}

.my-auth-input:focus {
    border-color: rgba(0, 111, 94, .55) !important;
    box-shadow: 0 0 0 4px rgba(0, 111, 94, .12) !important;
}

.my-auth-pass {
    position: relative;
}

.my-auth-pass .my-auth-input {
    padding-right: 44px !important;
}

.my-auth-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0 !important;
    background: transparent !important;
    padding: 6px !important;
    border-radius: 10px !important;
    cursor: pointer;
    color: rgba(0, 0, 0, .55) !important;
    box-shadow: none !important;
    min-width: 0 !important;
    /* Themes sometimes add min-width to buttons */
}

.my-auth-eye:hover {
    background: rgba(0, 0, 0, .05) !important;
}

.my-auth-eye svg {
    fill: rgb(17 17 17) !important;
    display: block;
}

.my-auth-btn {
    margin-top: 14px;
    width: 100%;
    border: 0 !important;
    border-radius: 999px !important;
    /* botón 100% redondo */
    padding: 12px 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    background: var(--my-auth-main) !important;
    color: #fff !important;
    transition: transform .04s ease, opacity .12s ease !important;
    text-transform: none !important;
    /* Check if user wants uppercase or not, defaults to none usually */
    font-size: 16px !important;
    line-height: normal !important;
}

.my-auth-btn:active {
    transform: translateY(1px);
}

.my-auth-btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

.my-auth-msg {
    margin-top: 12px;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(0, 0, 0, .03);
    color: rgba(0, 0, 0, .75);
    display: none;
}

.my-auth-msg.is-error {
    border-color: rgba(220, 0, 0, .22);
    background: rgba(220, 0, 0, .06);
    color: rgba(150, 0, 0, .9);
}

.my-auth-msg.is-ok {
    border-color: rgba(0, 111, 94, .25);
    background: rgba(0, 111, 94, .08);
    color: rgba(0, 111, 94, .95);
}