/* ==========================================================================
   MODAL DE ACESSO DO TENANT (ÁREA DO CLIENTE)
   ========================================================================== */

body.tenant-modal-open {
    overflow: hidden !important;
}

.tenant-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tenant-modal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.tenant-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 13, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tenant-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: auto;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenant-modal.is-open .tenant-modal__dialog {
    transform: translateY(0) scale(1);
}

.tenant-modal__card {
    position: relative;
    background: #ffffff;
    color: #1f2937;
    border-radius: 24px;
    padding: 34px 30px 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .tenant-modal__card {
        padding: 26px 18px 22px;
        border-radius: 20px;
    }
}

.tenant-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.tenant-modal__close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.tenant-modal__logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tenant-modal__logo img {
    max-height: 40px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tenant-modal__title {
    font-family: 'Work Sans', sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.tenant-modal__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 22px 0;
    line-height: 1.45;
}

.tenant-modal__form {
    margin: 0;
}

.tenant-modal__label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: start;
}

.tenant-modal__input-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #10b981;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tenant-modal__input-group:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.tenant-modal__input-group.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.tenant-modal__prefix {
    display: flex;
    align-items: center;
    padding: 12px 10px 12px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
    flex-shrink: 0;
}

.tenant-modal__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 12px 12px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
}

.tenant-modal__input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.tenant-modal__error {
    font-size: 12.5px;
    color: #ef4444;
    margin-top: 6px;
    min-height: 18px;
    text-align: start;
    display: none;
}

.tenant-modal__error.is-visible {
    display: block;
}

.tenant-modal__submit {
    width: 100%;
    background: #0d7a53 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(13, 122, 83, 0.25);
    height: auto !important;
}

.tenant-modal__submit:hover {
    background: #096343 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 122, 83, 0.35);
}

.tenant-modal__submit:active {
    transform: translateY(0);
}

.tenant-modal__info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
    text-align: start;
}

.tenant-modal__info-icon {
    flex-shrink: 0;
    color: #9ca3af;
}

.tenant-modal__footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 13.5px;
    color: #4b5563;
}

.tenant-modal__footer a {
    color: #0d7a53 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.tenant-modal__footer a:hover {
    color: #064e3b !important;
    text-decoration: underline !important;
}

@media (max-width: 420px) {
    .tenant-modal__prefix {
        font-size: 11.5px;
        padding: 10px 8px;
    }
    .tenant-modal__input {
        font-size: 13.5px !important;
        padding: 10px 8px !important;
    }
}
