.login-container {
    padding: 2rem 1.5rem;
    border: 2px solid #3b82f6; /* Borde azul más visible */
    border-radius: 1rem;
    margin: 1rem;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.register-container {
    padding: 2rem 1.5rem;
    border: 2px solid #3b82f6;
    border-radius: 1rem;
    margin: 1rem;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: 90vh; /* Altura máxima del 90% del viewport */
    overflow-y: auto; /* Agrega el scrollbar vertical */
}

/* Estilo personalizado para el scrollbar (opcional) */
.register-container::-webkit-scrollbar {
    width: 8px;
}

.register-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.register-container::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.register-container::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Modal Styles */
#signatureModal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#signatureModal.show {
    display: flex !important;
    opacity: 1 !important;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.signature-area {
    width: 100%;
    height: 150px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 12px;
    padding: 12px;
    resize: none;
    font-family: inherit;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #0c7ff2;
    color: white;
}

.btn-primary:hover {
    background-color: #0a6bc5;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

/* Botón de retroceso (flecha hacia atrás) */
.back-button {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: #3b82f6;
    font-size: 1.1rem;
    margin-right: 1rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.back-button:hover {
    background-color: #3b82f6;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.back-button:active {
    transform: scale(0.95);
}

.back-button i {
    pointer-events: none;
}

/* Contenedor del título con botón de retroceso */
.title-with-back {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.title-with-back h1 {
    margin: 0;
    display: inline-block;
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .form-input {
        font-size: 16px !important; /* Prevents zoom on focus in iOS */
    }
    
    .back-button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
}