/* Login ERPMEDIC */
body.erpcontable-login-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #b8daf2 0%, #8ec5e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.erpcontable-login-window {
    display: flex;
    width: 100%;
    max-width: 720px;
    min-height: 420px;
    border: 2px solid #6baed6;
    border-radius: 0.35rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.erpcontable-login-left {
    width: 42%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
}

.erpcontable-login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.erpcontable-login-brand .logo-imagen {
    max-width: 100%;
    width: 240px;
    height: auto;
    display: block;
    border-radius: 0.25rem;
}

.erpcontable-login-preview .login-preview-default,
.erpcontable-login-preview #loginPreviewImg {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.erpcontable-login-brand .logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    color: #6ec4e8;
    letter-spacing: 0.15em;
}

.erpcontable-login-left-footer {
    width: 100%;
    background: linear-gradient(180deg, #b8daf2 0%, #9ec8e8 100%);
    color: #1a3a52;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.35rem;
    margin: 0 -1rem -1.5rem;
    width: calc(100% + 2rem);
}

.erpcontable-login-right {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, #f0f8fc 0%, #e0f0fa 100%);
    display: flex;
    flex-direction: column;
}

.erpcontable-login-preview {
    width: 72px;
    height: 72px;
    border: 2px solid #9ec4e0;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border-radius: 0.25rem;
}

.erpcontable-login-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.erpcontable-login-preview i {
    font-size: 2.5rem;
    color: #9ec4e0;
}

.erpcontable-login-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.erpcontable-login-form .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 0.15rem;
}

.erpcontable-login-form .form-control,
.erpcontable-login-form .form-select {
    font-size: 0.85rem;
    border-color: #9ec4e0;
}

.erpcontable-login-form .input-group-empresa .btn {
    border-color: #9ec4e0;
}

.erpcontable-login-estado {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.45rem 0.55rem;
    background: linear-gradient(180deg, #e8f4fc 0%, #d9ecfa 100%);
    border: 1px solid #7eb8de;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #1a3a52;
    min-height: 2rem;
}

.erpcontable-login-estado.is-visible {
    display: flex;
}

.erpcontable-login-estado.is-loading {
    color: #2a6a9a;
    font-weight: 600;
    border-color: #2a6a9a;
}

.erpcontable-login-estado-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
}

.erpcontable-login-ayuda {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.erpcontable-login-ayuda-cargando {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    background: linear-gradient(180deg, #e8f4fc 0%, #d9ecfa 100%);
    border: 1px solid #2a6a9a;
    border-radius: 0.25rem;
    color: #2a6a9a !important;
    font-weight: 600;
}

.erpcontable-login-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.erpcontable-login-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    border: 1px solid #9ec4e0;
    background: linear-gradient(180deg, #f8fcff 0%, #dceef9 100%);
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a3a52;
    border-radius: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    min-width: 70px;
}

.erpcontable-login-btn:hover {
    background: #fff;
}

.erpcontable-login-btn i {
    font-size: 1.35rem;
}

.erpcontable-login-btn.btn-acepta i {
    color: #27ae60;
}

.erpcontable-login-btn.btn-cancela i {
    color: #c0392b;
}

.erpcontable-login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.erpcontable-login-validando {
    color: #2a6a9a !important;
    font-weight: 600;
}

.erpcontable-login-spinner {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #9ec4e0;
    border-top-color: #2a6a9a;
    border-radius: 50%;
    animation: erpcontable-login-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.erpcontable-login-form .form-select.is-validando {
    color: #6c757d;
    background-color: #f0f8fc;
}

@keyframes erpcontable-login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .erpcontable-login-window {
        flex-direction: column;
        max-width: 400px;
    }

    .erpcontable-login-left {
        width: 100%;
        min-height: 160px;
    }
}
