/* ===== SHELL ===== */
.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: 'Source Sans 3', sans-serif;
}

/* ===== LADO ESQUERDO ===== */
.login-left {
    background: linear-gradient(to bottom, #185FA5 0%, #0c1e3d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-left::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 70%;
    height: 70%;
    background-image: url('/images/icone_moriah_one.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top left;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.login-left-dots {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-size: 28px 28px;
}

.login-left-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.login-logo img {
    height: 80px;
}

.login-tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
    margin-top: -12px;
}

.login-divider {
    width: 36px;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.login-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    max-width: 240px;
}

.login-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.module-pill {
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    padding: 3px 10px;
}

/* ===== LADO DIREITO ===== */
.login-right {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-wrap {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===== TENANT ===== */
.tenant-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.tenant-logo-img {
    max-height: 44px;
    max-width: 160px;
    object-fit: contain;
}

.tenant-name-fallback {
    font-size: 20px;
    font-weight: 700;
    color: #0c1e3d;
}

.tenant-welcome {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

.tenant-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.tenant-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 8px 12px;
}

.tenant-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3B6D11;
    flex-shrink: 0;
}

.tenant-badge-text {
    font-size: 12px;
    color: #6b7280;
}

/* ===== CAMPOS ===== */
.login-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-field label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Override MudBlazor para inputs */
.login-input .mud-input-outlined .mud-input {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px !important;
}

.login-input .mud-input-outlined-border {
    border-color: rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
}

.login-input:focus-within .mud-input-outlined-border {
    border-color: #185FA5 !important;
    border-width: 1px !important;
}

/* ===== BOTÃO LOGIN ===== */
.btn-login.mud-button-filled {
    background: #185FA5 !important;
    border-radius: 8px !important;
    height: 42px;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    text-transform: none !important;
}

.btn-login.mud-button-filled:hover {
    background: #0c4480 !important;
}

/* ===== RODAPÉ ===== */
.login-forgot {
    font-size: 11px;
    color: #185FA5;
    text-align: right;
    cursor: pointer;
    margin-top: -6px;
}

.login-forgot:hover { text-decoration: underline; }

.login-divider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-divider-line {
    flex: 1;
    height: 0.5px;
    background: rgba(0,0,0,0.08);
}

.login-divider-text {
    font-size: 10px;
    color: #9ca3af;
}

.login-footer-text {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

.login-footer-text a {
    color: #185FA5;
    cursor: pointer;
}

.login-footer-text a:hover { text-decoration: underline; }

.login-powered {
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
}

.login-powered strong {
    color: #185FA5;
}

/* ===== BOTÃO RESET (verde) ===== */
.btn-reset.mud-button-filled {
    background: #2e7d32 !important;
    border-radius: 8px !important;
    height: 42px;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    text-transform: none !important;
}

.btn-reset.mud-button-filled:hover {
    background: #1b5e20 !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        min-height: 100vh;
    }
}
